如何获取像谷歌阅读器这样的 RSS 旧项目
我正在创建 RSS 阅读器应用程序。我需要获取任何链接的 rss 旧项目。例如,某些网络 RSS 结果计数太少。我的申请检查时间范围太长。有时会丢失一些消息。
我如何获得 rss 旧物品?
当在谷歌阅读器上向下滚动时,阅读器会显示以前的项目。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
试试这个http://www.google.com/reader/atom/feed/ {不带 {} 的 rssfeed 的完整网址 }?n=5000
try this http://www.google.com/reader/atom/feed/{complete url to rssfeed without {} }?n=5000
我猜想,谷歌会保存这些项目并可以显示它们,即使它们不再出现在提要中。 Google 阅读器甚至可能会向您显示添加提要之前的项目,因为提要可能会全局存储,而不是按用户存储。
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.
是的,@someone 推荐的策略可以对此有所帮助。扩展一下:
Google Reader 非官方 API 允许您从提要中请求旧项目,但速度会非常慢(例如,如果您请求 10000 个项目),因此您应该请求一次并将其缓存在您身边。
如果您需要超过 10000~20000,您可能会在 Google 服务器端遇到超时。为了帮助解决此问题,您可以每次请求 1000 个或更多项目 (http://www .google.com/reader/atom/feed/),然后使用 continuation 参数进行分页。我从未使用过这个,但它包含一个参数(c,用于继续),可以满足您的需求。如此处所述(在“项目的原子集”部分中):
另一件事是,在使用该 API 之前,您需要登录 Google Reader。如果您想要代码,请检查我的答案 对于另一个问题。
希望有帮助!
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):
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!
由于 Google 阅读器大约一年前关闭,我建议您尝试一下 Superfeedr(如果您是)寻找替代品。
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.