I'm trying to scrape data off a website in R using the XML package, but I'm not getting any results. My code is below. The results are NULL. The first line turns up a null result (it's not finding any tables).
Code:
tables <- readHTMLTable(url, stringsAsFactors=FALSE)
data<-do.call("rbind", tables[seq(from=8, to=56, by=2)])
data<-cbind(data, sapply(lapply(tables[seq(from=9, to=57, by=2)], '[[', i=2), '[', 1))
rownames(data)<-NULL
names(data) <- c("year.man.model", "s.n", "price", "location", "auction")
head(data)
Any help would be greatly appreciated!
Don