谷歌阅读器API不显示所有结果 [英] Google Reader API not showing all results

查看:231
本文介绍了谷歌阅读器API不显示所有结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用谷歌阅读器API来获取任何RSS提要所有可用的物品。我用它如下:

I'm using Google reader API to get all available items for any RSS feed. I use it as follows:

http://www.google.com/reader/atom/feed/ [RSS FEED LINK] N = [项目的数量,以显示]放大器; R =的O& OT = [UNIX时间戳开始日期]

http://www.google.com/reader/atom/feed/[RSS FEED LINK]?n=[NUMBER OF ITEMS TO SHOW]&r=o&ot=[UNIX TIME STAMP FOR START DATE]

据我所知,这应该返回开始由时间戳指定的日期的所有项目(开始日期应该不会早于一个月前)。这对于一些饲料的伟大工程,但在大多数饲料,它不显示所有可用的项目(尽管他们使用谷歌阅读器时可用)。

As I understand, this should return all items starting with the date specified by the time stamp (start date should not be older than one month ago). It works great for some feeds, but in most feeds, it doesn't show all available items (although they are available when using Google Reader).

例如:

<一个href=\"http://www.google.com/reader/atom/feed/http://www.360cities.net/rss/area/Greece.rss?n=1000&r=o&ot=1306959543\" rel=\"nofollow\">http://www.google.com/reader/atom/feed/http://www.360cities.net/rss/area/Greece.rss?n=1000&r=o&ot=1306959543

该链接仅显示了24-07-2011开始为当前日期,尽管它应该显示的项目开始26-06-2011项目。如果相同的链接(http://www.360cities.net/rss/area/Greece.rss)是由谷歌阅读器读取,它会表现出更多的成果。

this link only shows items starting with 24-07-2011 to current date although it should show items starting with 26-06-2011. If the same link (http://www.360cities.net/rss/area/Greece.rss) is read by Google Reader, it'll show much more results.

有什么办法呢?

推荐答案

幸运的是,我找到了解决我的问题了大量的研究后:

Fortunately, I found the solution to my problem after a lot of research:


      
  • 在此格式的URL返回RSS源的最新的N个项目

  • A url in this form returns the most recent N items of the RSS Feed

http://www.google.com/reader/atom/feed/ [RSS] N = [N]

http://www.google.com/reader/atom/feed/[RSS]?n=[N]

[N] =要显示的项目数量(最多:1000)。

[N] = Number of items to be displayed (max: 1000).

[RSS] = RSS源的URL。

[RSS] = The url for the rss feed.

要获取随后的N旧项目,另外一个参数叫延续字符串应使用。延续标签中的每个结果页面:它可以在克被发现。因此,要获得N个旧项目,以这种形式的URL应使用:

To get the next N older items, another parameter called Continuation String should be used. It can be found inside gr:continuation tag in each results' page. So, To get the N older items, a url in this form should be used:

http://www.google.com/reader/atom/feed/ [RSS] N = [N]&放大器; C = [C]

http://www.google.com/reader/atom/feed/[RSS]?n=[N]&c=[C]

[N] =要显示的项目数量(最多:1000)。

[N] = Number of items to be displayed (max: 1000).

[RSS] =的URL的RSS feed。

[RSS] = The url for the rss feed.

[C] =延续字符串

[C] = Continuation string

示例:

要获得此RSS源的最新的1000项,要使用应该像的网址:

To get newest 1000 item of this rss feed, The url to be used should look like:

<一个href=\"http://www.google.com/reader/atom/feed/http://www.360cities.net/rss/area/north-america.rss?n=1000\" rel=\"nofollow\">http://www.google.com/reader/atom/feed/http://www.360cities.net/rss/area/north-america.rss?n=1000

要获得下一个较旧的1000个项目,首先要在第一结果页面搜索和查找在延续字符串。在这种情况下,延续字符串为 COnu-r7znpsC (在查看这个帖子也可能是不同的)。然后,URL中使用应该是这样的:

To get the next older 1000 items, We should first search in the first result page and find the Continuation String. In this case the Continuation String is COnu-r7znpsC (it may be different when you view this post). Then, the url to be used should look like:

<一个href=\"http://www.google.com/reader/atom/feed/http://www.360cities.net/rss/area/north-america.rss?n=1000&c=COnu-r7znpsC\" rel=\"nofollow\">http://www.google.com/reader/atom/feed/http://www.360cities.net/rss/area/north-america.rss?n=1000&c=COnu-r7znpsC

要获得下一个较旧的1000个项目,通过寻找新的延续字符串,重复同样的过程等等...

To get the next older 1000 items, repeat the same process by finding the new Continuation String, etc...

如果没有找到延续字符串,这意味着没有更多的项目可供选择。

If no Continuation String was found, this means that no more items are available.

我希望这会帮助别人。

感谢

这篇关于谷歌阅读器API不显示所有结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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