如何获取更多Feed项目? [英] How to get more Feed items?

查看:106
本文介绍了如何获取更多Feed项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取供稿的下一页或更多结果?

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

例如,当我转到立即安全" 提要页面时,没有下一步任何链接和url参数" page = 100都不起作用:

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

我只得到大约20集的结果的一页. 但是,我的Google阅读器可以成功检索早于此的剧集.

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

推荐答案

确实,Google阅读器缓存了这些内容,因此无法对RSS2,RSS或Atom提要进行分页(除非它们具有rel = next链接,他们似乎都没有.)

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).

但是,我们可以通过一些工作来利用现有的Google阅读器基础结构来检索200个项目的列表!

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

鉴于上述播客网址,我们通过以下方式检索最近的200集:

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

  1. 使用... google.ca/reader/atom/feed前缀,而不是在Google阅读器中可以看到的常规视图/提要.
  2. 附加n = 200作为查询参数.

所以我们有:

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

http:/上有一个非常有见地的反向工程google-reader API项目. /code.google.com/p/pyrfeed/wiki/GoogleReaderAPI

这篇关于如何获取更多Feed项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆