如何解决如何在我的RSS中指定HUB以符合WebSub?
我有RSS feed。我想使用WebSub服务器立即更新有关我的帖子的信息。我选择了Google Free服务器https://pubsubhubbub.appspot.com/。服务器主页上有一条说明:
在// atom:feed下为Atom提要或在下面添加// atom:link标记 // rss:rss / channel用于RSS feed。 // atom:link标记应具有rel 属性设置为hub,href属性设置为 https://pubsubhubbub.appspot.com/
我不明白or under //rss:rss/channel for RSS feeds
是什么意思?根据说明,我必须向我的feed.xml
的频道部分添加链接。但我不知道此链接的外观如何?
我找到了原子供料here的示例。原子链接应如下所示:
<link rel="hub" href="https://pubsubhubbub.appspot.com/" xmlns="http://www.w3.org/2005/Atom" />
找不到RSS供稿的任何示例。有什么想法吗?
这是我的feed.xml的示例:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Примеры фида RSS в Google Новостях</title>
<link>https://www.mysite.ua/static/rss/newsline.xml</link>
<description>Это примеры фида RSS в Google Новостях.</description>
<lastBuildDate>Fri,23 Jan 2015 23:26:19 +0000</lastBuildDate>
<item>
<guid>https://mysite.ua/url-post.html</guid>
<pubDate>Fri,23 Jan 2015 23:17:00 +0000</pubDate>
<title>Example 1</title>
<description>Desc</description>
<content:encoded>
<![CDATA[<p>Lorem ipsum dolor ]]>
</content:encoded>
<link>http://examples.com/sample-post.html</link>
<author>pochta@example.com (Anna Name)</author>
<enclosure url="https://examples.com/img/1300x820.jpg" type="image/jpeg" length="0"/>
</item>
</channel>
</rss>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。