0

Accessing Historic Yahoo! Finance News feeds


Hello,

I'm currently using some borrowed Python code (borrowed from http://www.gurchet-rai.net/dev/yahoo-finance-yql) to bring in a list of ticker symbols and bring in news associated with these symbols.  However, most of the work I'm doing is retrospective, so I need the ability to pull in old new feeds.  For instance, I might need to see if there was any news announcements for Apple (AAPL) from around August 20, 2011.  Do I have this ability?  First, I don't have much exposure to YQL or the YQL table schema.  Does this historic data even exist?  Secondly, while trying to query it, I was having trouble adding a WHERE clause with pubDate = 9/21/2011.

My base query looks like:
select * from rss where url='http://finance.yahoo.com/rss/headline?s=AAPL'

Thank you for any help you can provide.
Jeremy

by
1 Reply
  • Hi Jeremy,<br><br>As long as the Yahoo! Finance Headlines RSS feed has retained the historical data, then yes you should be able to query it. Your example for news announcements for AAPL doesn&#39;t have much historic data for some reason. I tried a similar query aggregating a few different ticker symbols:<br><br>select * from rss where url=&#39;http://finance.yahoo.com/rss/headline?s=yhoo,goog,msft&n=425&#39; and pubDate LIKE &#39;%16 Sep 2011%&#39;<br><br>Some things to note is that the feed seems to support the &#39;n=&#39; parameter to specify the number of items returned. The larger this number the further back in time your news items will go. Not all days have news items associated with them. Also, you can use like to match the format in which pubDate is returned. &quot;9/21/2011&quot; is not a proper date format for the field.<br><br>Hope this helps. Let me know if you have any further questions/problems.<br><br><br>Thanks,<br>Sadaf<br>YQL team<br><br><div class="quote"><div class="quotetop">QUOTE<cite>(jeremy @ 19 Oct 2011 12:52 PM)</cite></div><blockquote class="quotemain"><br>Hello,<br><br>I&#39;m currently using some borrowed Python code (borrowed from <a href="http://www.gurchet-rai.net/dev/yahoo-finance-yql">http://www.gurchet-rai.net/dev/yahoo-finance-yql</a>)&nbsp;to bring in a list of ticker symbols and bring in news associated with these symbols.&nbsp; However, most of the work I&#39;m doing is retrospective, so I need the ability to pull in old new feeds.&nbsp; For instance, I might need to see if there was any news announcements for Apple (AAPL) from around August 20, 2011.&nbsp; Do I have this ability?&nbsp; First, I don&#39;t have much exposure to YQL or the YQL table schema.&nbsp; Does this historic data even exist?&nbsp; Secondly, while trying to query it, I was having trouble adding a WHERE clause with pubDate = 9/21/2011.<br><br>My base query looks like:<br>select * from rss where url=&#39;http://finance.yahoo.com/rss/headline?s=AAPL&#39;<br><br>Thank you for any help you can provide.<br>Jeremy</blockquote></div>
    0

Recent Posts

in YQL