7
votes

I'm creating RSS reader application. I need to get any linked rss old items. For example some web rss result count is too less. My application check time range is too long. Sometimes loss some news.

How can I get rss old items?

When scrolling down on the google reader,reader shown previous items.

4
Huh? What do you mean "old rss items" ?Nathan Taylor
RSS always return last items. For example: think that any web release 200 news. But this web rss return 20 result (181..200). I need 1..180 id of news. Is it possible? How google reader work?ebattulga

4 Answers

12
votes

I guess, Google saves these items and can display them, even if they are no longer in the feed. Google Reader might even show you items from before you added the feed, because the feeds might be stored globally and not per user.

13
votes

try this http://www.google.com/reader/atom/feed/{complete url to rssfeed without {} }?n=5000

0
votes

Yes, the strategy recommended by @someone can help on this. Expanding on that:

Google Reader unofficial API lets you ask for old items from feeds, but it'll be very slow (if you're asking for 10000 items for instance), so you should ask for that once and cache it on your side.

If you need more than 10000~20000 you'll probably get timeouts on the Google server side. To help with this you can probably ask for 1000 or something items each time (http://www.google.com/reader/atom/feed/), and then use the continuation parameter for paging. I've never used this one, but it contains a parameter (c, for continuation) that can be promising for what you need. As described here (in the 'Atom set of items' section):

a string used for continuation process. Each feed return not all items, but only a certain number of items. You'll find in the atom feed (under the name gr:continuation) a string called continuation. Just add that string as argument for this parameter, and you'll retrieve next items.

One more thing, you'll need to login to Google Reader before using that API. If you want code for that, check my answer to this other question.

Hope it helps!

0
votes

Since Google Reader shut down about a year ago, I'd suggest you give a shot at Superfeedr if you're looking for a replacement.