Displaying 1 result from an estimated 1 matches for "tablenod".
Did you mean:
tablend
2011 Aug 29
1
reading tables from multiple HTML pages
...t be best to go about keeping the loop running so I can parse the
rest?
****************************************************
library(XML)
url_root<-"http://www.szrd.gov.cn/viewcommondbfc.do?id="
for(i in 700:750){
url = paste(url_root, i, sep="")
doc = htmlParse(url)
tableNodes = getNodeSet(doc, "//table")
tbl = readHTMLTable(tableNodes[[3]])
}
****************************************************
Steve Oliver
Department of Political Science
University of California at San Diego
9500 Gilman Dr.
La Jolla, CA 92092
--
View this message in context: http://r.789...