vendredi 3 septembre 2021

Web Scraping with rvest package don't work

I'm trying to get a table with rvest but it doesn't recognize the numbers and creates two extra columns with NAs

A few months ago it worked, but apparently they made changes to the website and now it doesn't work.I do not know what the problem may be.

  url <- paste0("https://climatologia.meteochile.gob.cl/application/mensual/temperaturaMediaMensual/170007/2021/08")
tmp <- read_html(url)
tmp <- html_nodes(tmp,"table")
sapply(tmp, function(x) dim(html_table(x, fill = TRUE))) ## ver tabla con datos
tabla <- html_table(tmp[1],fill = T,header=NA, dec = ".")



Aucun commentaire:

Enregistrer un commentaire