Skip to content

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

2 messages · Moser, Gary, Henrique Dallazuanna

#
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: