Open lmeilibr opened 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]]
Thank you for this suggested approach. To use it currently (in April 2020)
rvest
tables = html_table(heritage_parsed, fill = TRUE)
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]]