Skip to content
Prev 275629 / 398506 Next

Webscraping - How to Scrape Out Text Into R As If Copied & Pasted From Webpage?

Use XPATH query:

web.pg <- htmlTreeParse(file=web.pg, ignoreBlanks=TRUE, useInternalNodes = TRUE)

# Job title
xpathApply(web.pg, "//span[@class='normal']//b", xmlValue)
On Wed, Oct 26, 2011 at 9:36 PM, Moser, Gary <Gary_Moser at heald.edu> wrote: