mardi 14 avril 2015

Scraping a web with several pages with links but not in the URL

I am trying to scrap using R this web: http://ift.tt/1FKc6V6 but I can't to access to the following pages (BAN - CIA, ... links).


I scrape this web using this easy script:



library(RHTMLForms)
library(XML)
library(RCurl)
library(plyr)
library(data.table)
url <- "http://ift.tt/1FKc6V6"
url2 <- getURL(url)
url3 <- htmlParse(url2, encoding="utf-8")
a2 <- readHTMLTable(url3)
results <- a2[[3]]


but I want the remaining pages too. Thanks!





Aucun commentaire:

Enregistrer un commentaire