使用 Google App Engine 显示 Rss/Atom 提要
我正在考虑设置一个仅显示 RSS 或 Atom feed 的 Google 应用。这个想法是,每隔一段时间(一个 cron 作业或按下一个魔术按钮)就会读取提要并将其复制到应用程序的内部数据中,以供查看。这将在 Python 中完成。
我发现此页面似乎解释了我的意思想做。但这是假设我使用其他一些 Google 产品,因为它依赖于 Google API。
我的想法更符合添加一些新内容,将其托管在我的计算机上本地,转到 Google 应用管理面板,按下按钮,然后读取并复制我的(本地托管)提要。
我现在的问题是:
- 指定的 RSS(或 Atom,一种就足够了)格式是否足以处理添加/编辑/删除?
- 有什么味道或类似的问题我应该担心吗?
- 以前这样做过吗?会节省我一些工作。
Im thinking of setting up a Google App that simply displays an RSS or Atom feed. The idea is that every once in a while (a cron job or at the push of a magic button) the feed is read and copied into the apps internal data, ready to be viewed. This would be done in Python.
I found this page that seems to explain what I want to do. But that is assuming Im using some of the other Google products as it relies on the Google API.
My idea was more in line that added some new content, hosted it locally on my machine, went to the Google App administration panel, pushed a button and my (locally hosted) feed was read and copied.
My questions now are:
- Is the RSS (or Atom, one is enough) format specified enough to handle add/edit/delete?
- Are there any flavors or such I should worry about?
- Have this been done before? Would save me some work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一种选择是使用通用提要解析器库,它将为您解决大部分问题。另一种选择是使用 PubSubHubbub 支持的服务,例如 Superfeedr,它将在预发布中向您发布更新经过净化的形式,消除了大部分轮询和解析问题。
One option is to use the universal feed parser library, which will take care of most of these issues for you. Another option would be to use a PubSubHubbub-powered service such as Superfeedr, which will POST updates to you in a pre-sanitized form, eliminating most of your polling and parsing issues.
使用额外的库怎么样,例如 Feedparser ?
What about using an additional library, like for instance Feedparser?