crubba / Wiley-ADCR

Repository for the book "Automated Data Collection with R"
41 stars 76 forks source link

htmlParse #12

Open lmeilibr opened 6 years ago

lmeilibr commented 6 years ago

for the wikipedia example, this function is not working anymore:

Error: failed to load external entity "http://en.wikipedia.org/wiki/List_of_World_Heritage_in_Danger"

You could substitute it for this: library(rvest)

heritage_parsed <- read_html("http://en.wikipedia.org/wiki/List_of_World_Heritage_in_Danger") tables <- html_table(heritage_parsed) danger_table <- tables[[2]]

julianharty commented 4 years ago

Thank you for this suggested approach. To use it currently (in April 2020)