skip to Main Content

web scraping with loop – Html

I'm trying to download zip codes that are in different pages. I started with a list of nodes for each municipality inside Mexico City. url<-"https://www.codigopostal.lat/mexico/Ciudad-de-Mexico/" resource<-GET(url) parse<-htmlParse(resource) links<-as.character(xpathSApply(parse,path="//a",xmlGetAttr,"href")) print(links) And then I'm trying to create a loop that grabs each…

VIEW QUESTION
Back To Top
Search