[R] Scraping a web page

hadley wickham h.wickham at gmail.com
Fri Dec 4 01:04:43 CET 2009


> If you're after text, then it's probably a matter of locating the element
> that encloses the data you want-- perhaps by using getNodeSet along with an
> XPath[1] that specifies the element you are interest with.  The text can
> then be recovered using the xmlValue() function.

And rather than trying to find that path by hand, do it interactively
with http://www.selectorgadget.com/

Hadley

-- 
http://had.co.nz/




More information about the R-help mailing list