Getting stock news data from google in R [closed]
Asked Answered
S

3

3

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?

Sulph answered 21/4, 2011 at 20:6 Comment(0)
S
0

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.

Sulph answered 23/4, 2011 at 1:45 Comment(0)
A
4

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

Abuzz answered 21/4, 2011 at 20:19 Comment(1)
And look here for some good nuggets of info on using said package: #1396028Jehad
C
2

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)

Cyndycynera answered 21/4, 2011 at 20:47 Comment(0)
S
0

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.

Sulph answered 23/4, 2011 at 1:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.