Solved

How to get more RSS feed items from reuters

Posted on 2009-05-12
4
515 Views
Last Modified: 2013-11-18
We are trying to display relevant news items on our ASP.NET site. We download these feed items from reuters. for example, we use the link http://feeds.reuters.com/reuters/topNews?format=xml

The problem is, the reuters feed is giving only the latest 10 items and the older ones are quickly expiring. We would like to get all the news items of the last month or last 7 days depending on the preferences. Is there someway to get this done?
0
Comment
Question by:shore-support
  • 2
4 Comments
 

Expert Comment

by:jones1618
Comment Utility
Two answers spring to mind:

1. Locally cache Reuters news items yourself. If yours is a high traffic site, that's just the courteous thing to do.

Pseudo-code: Check cache age. If it is older than X hours, fetch latest RSS from Reuters. Add new items (if any) to cache. Expire any items older than X days/hours.

2. Reuters Labs provides a richer set of feed options including a "count" parameter (which doesn't work in the feedburner feed, unfortunately.) Note: You have to register and declare your intended use of the data.

Reuters Labs - Spotlight
http://spotlight.reuters.com/page/2007/07/10/feeds
0
 
LVL 108

Expert Comment

by:Ray Paseur
Comment Utility
Here is how I might approach it...

Use a cron job to read the Reuters feed.  You can tinker with the interval - perhaps run this every few minutes, depending on the rate of change in the Reuters feed.

Pull the items out of the feed.  Make a hash code from the entire text of the item from the open <item> to the close </item>  Insert a timestamp, the hash code and the item text into your data base.  I would mark the hash code UNIQUE to force an error when you try to insert the same item twice.

If you're getting a lot of duplicate hash code errors you might lengthen the time between runs of the cron job.

Then use your data base to serve the items in your RSS feed.

HTH, ~Ray
0
 

Author Comment

by:shore-support
Comment Utility
We want to use the feed items for commercial purpose. But the "Reuters Labs - Spotlight" prohibits use of feeds for commercial purposes.

I think the best way is to keep running our scheduled job at some interval and catch the feed items.

Google reader keeps all the items in cache. But to access those items, one needs to authenticate into the google services using google API. I think this API requires entering of captcha code by the user. If we can authenticate some how into GOOGLE Reader, then we can read the feed items. This way we do not need to cache the items.

Please let me know your comments?
0
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
Comment Utility
I've used other Google services and have never needed a CAPTCHA code to use their API.  You access these services via a RESTful interface, passing the API key in the GET string of the URL.

I am not familiar with using Google Reader to access Reuters RSS feeds, but I recall another question in the RSS Zone from someone who found a similar situation (only a few recent feed items) in Google.

RSS feeds cost money to build and serve, and there is little added value in keeping lots of them around, especially when they are not making a company any money.  So for that reason I would think that the trend would be toward shorter feeds, and I would think that if you need more life of the items in the feed, you would be in the best position if you relied on your own ability to store and server the feeds.

My $0.02.  Hope that helps, ~Ray
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The biggest nightmare for any Exchange Server Administrator is to keep the server running without any issue. But the problems often come and they need to be resolved efficiently and timely. Here are important troubleshooting points: Define the Pr…
Being able to change email signatures is made really simple with email signature software and services.
The viewer will learn how to dynamically set the form action using jQuery.
In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now