Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get more Feed items?

How would I get the next page or more results for a feed?

For example, when I go to Security Now feed page, there is no "next" link of any kind and the url parameter of "page=100" does nothing:

http://leoville.tv/podcasts/sn.xml

I get only 1 page of results of about 20 episodes. However my Google Reader can successfully retrieve episodes that are earlier than that.

like image 808
Andriy Drozdyuk Avatar asked Jun 07 '10 17:06

Andriy Drozdyuk


People also ask

How do I create a feed in Salesforce?

To create feed-based layouts for cases, use Case Feed. Be sure feed tracking is enabled for the object on which you want to create a feed-based layout. To enable feed tracking, from Setup, enter Feed Tracking in the Quick Find box, then select Feed Tracking. Create a new page layout and select Feed-Based Layout .


2 Answers

Indeed it is true that Google Reader caches the items and it is NOT possible to paginate on RSS2, RSS or Atom feeds (unless they have rel=next link, which none of them seem to have).

However, we can leverage the existing Google Reader infrastructure, with some work, to retrieve a list of, say 200 items!

Given the above podcast url we retrieve the latest 200 episodes by:

  1. Using the ...google.ca/reader/atom/feed prefix instead of the usual view/feed as can be seen in your google reader.
  2. Appending n=200 as the query parameter.

So we have:

http://www.google.ca/reader/atom/feed/http://leoville.tv/podcasts/sn.xml?hl=en&n=200

There is a very insightful reverse-engineered google-reader API project located at http://code.google.com/p/pyrfeed/wiki/GoogleReaderAPI

like image 109
Andriy Drozdyuk Avatar answered Sep 21 '22 17:09

Andriy Drozdyuk


Google reader caches RSS entries. You can't get any more from the actual feed if they don't allow for it.

like image 26
BlueRaja - Danny Pflughoeft Avatar answered Sep 22 '22 17:09

BlueRaja - Danny Pflughoeft