Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


Unable to find node in xmlRoot Google RSS feed in RSS


want to scrape the news articles in my Google alerts RSS feed. This is my code in R using the XML package:

install.packages("XML")
library(XML)

doc1http://www.google.com/alerts/feeds/15985631956668437618/934829089626358614")
file<-xmlRoot(doc1)
src<-xpathApply(file[5]$entry,"\\entry")
This is what I think the problem is:

The xmlRoot() function creates a list of 24 elements. If there was only 1 element, the xpathApply() function will be able to detect the nodes, as in this example here: http://www.r-bloggers.com/how-to-build-a-dataset-in-r-using-an-rss-feed-or-web-page/

The urls for the news articles that I am looking for are hidden in a mess of html code.

I would greatly appreciate if anyone could help me with this issue, or give alternative approaches to the problem. Thank you.

asked May 7, 2015 in google by rajesh
0 votes
5 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...