简体   繁体   English

从现有RSS创建RSS feed

[英]Create an RSS feed from Existing RSS

Im using the Twitter API to read the Favorites RSS, it generates the following output: 我使用Twitter API来读取收藏夹RSS,它生成以下输出:

http://vl3.co.uk/favs/getfavs.php http://vl3.co.uk/favs/getfavs.php

I'm not sure why this file seems to be incorrect, doesnt come up in my RSS reader or render correctly in the browser. 我不确定为什么此文件似乎不正确,为什么没有出现在我的RSS阅读器中或无法在浏览器中正确显示。 Can anyone shed any light on this? 谁能对此有所启示?

If the output is not valid RSS how can I make it so? 如果输出无效的RSS,我该如何做呢?

Secondly I'd like to cache the RSS feed to then use something like Magpie RSS Parser. 其次,我想缓存RSS feed,然后使用Magpie RSS Parser之类的东西。

First of all, your URL seems to be served as text/html instead of application/rss+xml. 首先,您的URL似乎以text / html而不是application / rss + xml的形式提供。 Second, the XML content does not follow the RSS specification at all, so it's not going to work in a standard RSS reader. 其次,XML内容完全不符合RSS规范,因此它无法在标准RSS阅读器中使用。

RSS specs: http://cyber.law.harvard.edu/rss/rss.html RSS规范: http//cyber.law.harvard.edu/rss/rss.html

That's not RSS. 那不是RSS。 You can't just create any arbitrary set of XML tags and hope that an RSS reader will understand it - RSS is a standard , with particular tags required. 您不能只创建任意的XML标签集,并希望RSS阅读器能够理解它-RSS是一种标准的 ,需要特定的标签。

Your best bet is to take an existing RSS feed and see how it's constructed. 最好的选择是采用现有的RSS提要,并查看其结构。 You can check a feed you've created against the Feed Validator . 您可以对照Feed Validator检查您创建的Feed

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

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