如何获取 RSS 提要上的所有旧项目? [英] How Do I Fetch All Old Items on an RSS Feed?

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

问题描述

我一直在尝试编写自己的 RSS 阅读器.我可以处理解析 XML"位.我遇到的问题是我如何获取较旧的帖子?"

I've been experimenting with writing my own RSS reader. I can handle the "parse XML" bit. The thing I'm getting stuck on is "How do I fetch older posts?"

大多数 RSS 提要仅列出其 XML 文件中的 10-25 个最新项目.我如何获取所有提要中的项目,而不仅仅是最近的项目?

Most RSS feeds only list the 10-25 most recent items in their XML file. How do I get ALL the items in a feed, and not just the most recent ones?

我能找到的唯一解决方案是使用非官方"Google Reader API,类似于

The only solution I could find was using the "unofficial" Google Reader API, which would be something like

http://www.google.com/reader/atom/feed/http://fskrealityguide.blogspot.com/feeds/posts/default?n=1000

我不想让我的应用依赖于 Google 阅读器.

I don't want to make my application dependent on Google Reader.

有没有更好的办法?我注意到在 Blogger 上,我可以执行?start-index=1&max-results=1000",而在 WordPress 上我可以执行?paged=5".有没有什么通用的方法可以获取 RSS 提要,以便它为我提供所有内容,而不仅仅是最近的项目?

Is there any better way? I noticed that on Blogger, I can do "?start-index=1&max-results=1000", and on WordPress I can do "?paged=5". Is there any general way to fetch an RSS feed so that it gives me everything, and not just the most recent items?

推荐答案

RSS/Atom 提要不允许检索历史信息.提要的发布者可以根据需要提供它,例如您在上面给出的博主或 wordpress 示例中.

RSS/Atom feeds does not allow for historic information to be retrieved. It is up to the publisher of the feed to provide it if they want such as in the blogger or wordpress examples you gave above.

Google Reader 拥有更多信息的唯一原因是它从第一次出现时就记住了它.

The only reason that Google Reader has more information is that it remembered it from when it came up the first time.

有一些关于这样的事情的信息作为扩展到ATOM 协议,但我不知道它是否真的在任何地方实现.

There is some information on something like this talked about as an extension to the ATOM protocol, but I don't know if it is actually implemented anywhere.

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

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