简体   繁体   English

如何自行阅读rss,而不使用rss阅读器,

[英]how to read rss by self ,not use the rss reader ,

I am using Google AJAX Feed to handle the RSS, then I store the data in my database. 我正在使用Google AJAX Feed处理RSS,然后将数据存储在数据库中。

but I encountered a problem : 但是我遇到了一个问题:

how to read all data which updated since last time I read it (and I will lose some items), 如何读取自上次阅读以来已更新的所有数据(并且我会丢失一些项目),

thanks 谢谢

The RSS protocol doesn't support fetching only items since a certain date. 自特定日期以来,RSS协议不支持仅获取项目。 Your application must poll for the current version of the feed and check the items in the feed to see if there is anything new. 您的应用程序必须轮询提要的当前版本,并检查提要中的项目以查看是否有新内容。 Use the guid child-element of the item to uniquely identify items. 使用项目的guid子元素来唯一标识项目。 Ignore all items whose guid you have seen before and store those whose guid you haven't stored yet. 忽略您之前已看到其guid所有项目,并存储那些您尚未存储其guid

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM