开发者

Getting stock news data from google in R [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. 开发者_JAVA百科

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 3 years ago.

Improve this question

I can use quantmod to get historical data and close-to-realtime quotes for stocks. I can also use quantmod to get financials data from Google. Are there any existing R packages that would let me grab Google's news feed for a given stock?

If not, is there a package for reading and parsing RSS feeds in R?


Sure, RSS is after all XML, so use the XML package.


There's also a (not yet on CRAN) package that does some of the nitty gritty of parsing RSS feeds (and Atom) for you - nothing fancy, just some of the basic cleaning, normalization between the RSS and Atom spec, etc.

You can grab it from https://github.com/noahhl/r-does-rss

(full disclosure, I wrote it)


I wrote my own function to do this, using XML and xts. I posted it as a question on SO, because I think it could be improved.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜