Скачать CSV в R из Интернета - PullRequest
0 голосов
/ 28 марта 2020

Я хотел бы скачать CSV с веб-страницы. Мой код следующий:

url<-"https://rondasmexico.gob.mx/esp/contratos/cnh-r01-l01-a22015/?tab=11#"

url<-read_html(url)

links=url %>% html_nodes("#p11-btnDownload-datos") %>% html_attr("href")

download.file(url=links[1],destfile = "cnh-r01-l01-a22015.csv")

В конце я получаю следующий ответ:

"scheme not supported in URL '#'
...