ebattulga
ebattulga

Reputation: 10981

How to get rss old items like google reader

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.

Upvotes: 7

Views: 2708

Answers (4)

Julien Genestoux
Julien Genestoux

Reputation: 32992

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.

Upvotes: 0

ptdev
ptdev

Reputation: 454

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!

Upvotes: 0

someone
someone

Reputation: 131

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

Upvotes: 13

stefanw
stefanw

Reputation: 10570

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.

Upvotes: 12

Related Questions