Hello all. I'm trying to scrape a website with several pages, but I only get the first table.
This is the code:
url <- "Ranking de Ventas de las Empresas de madrid"
pagina <- read_html(url, as.data.frame=T, stringsAsFactors = TRUE)
pagina %>%
html_nodes("table") %>%
.[[1]] %>%
html_table(fill=T) -> x
The webpages, except the first, have this scheme http://www.infocif.es/ranking/ventas-empresas/madrid?pagina=* (* is a number for each one)
Thanks for any advice.