I want to scrape all the product prices from this page:
I can see in the bottom right of this url that it has many pages. If I select the page number six, for example, the url doesn't change.
I'm running the next code in R to get all the prices:
library(RCurl)
library(XML)
library(xml2)
doc <- read_html('http://www.la14.com/Tiendala14/paginacion/numericpaging.aspx?Catalog=base_catalog&Category=Mercado%2fAseo+Hogar')
prices <- xml_find_all(doc, xpath="//span[@id=]")
But I am just getting the product prices from page number 1 in this url. How can I get the product prices from the rest of pages in this url?