failed to load HTTP source in R

aeromaeasense

New Member
I tried to parse the webpage with the code below, but the last line turned out an output of "failed to load HTTP resource". Can anyone tell me how to deal with it? Thanks!The code is:\[code\]library(XML);library(RCurl)page=getForm("http://jobsearch.monster.com/search",query="data science")doc = htmlParse(page, asText = TRUE)joblinks = getNodeSet(doc, "//div[@class = 'jobTitleContainer']//a/@href")htmlParse(joblinks[[1]])\[/code\]
 
Back
Top