如何做外链-利用Rss订阅网站
网上有很多提供RSS聚合服务的网站,国内知名的有抓虾、鲜果、FeedSky和inezha等。
首先,我们得为我们的网站生成Rss文件(就是个指定格式的XML文件)。我们准备好一个网站内容的Rss文件(http://www.591gu.com/Archives/Reports.xml),内容格式如下:
<?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> <channel> <title>591gu Reports</title> <link /> <description>591gu Reports</description> <language>zh-cn</language> <pubDate>Thu, 03 Nov 2011 10:53:30 GMT</pubDate> <lastBuildDate>Thu, 03 Nov 2011 10:53:30 GMT</lastBuildDate> <generator>591gu.com</generator> <item> <title>Lenovo Group Ltd(00992.HK): Strong 2Q performance</title> <link>http://www.591gu.com/Archives/20111103/65353600992.htm</link> <description>Lenovo Group Ltd(00992.HK): Strong 2Q performance</description> <dc:creator>www.591gu.com</dc:creator> <pubDate>Thu, 03 Nov 2011 09:11:00 GMT</pubDate> <category>Reports</category> </item> </channel> </rss>
第二步,我们注册RSS聚合服务网站的用户。每个用户都会分配到一个主页:inezha(http://en.inezha.com/CaptainV)、FeedSky(http://feed.feedsky.com/591guReports)、抓虾(http://www.zhuaxia.com/pre_channel/5800639)和鲜果(http://xianguo.com/1155528)。
第三步,做循环订阅。我们首先使用FeedSky订阅http://www.591gu.com/Archives/Reports.xml,并选择广播,得到http://feed.feedsky.com/591guReports栏目。接着用inezha订阅http://www.591gu.com/Archives/Reports.xml,得到http://inezha.com/rss/user/CaptainV源,最后用抓虾和鲜果订阅上述三个源,这样我们就实现了Rss聚合服务之间的循环,做了更多的外链。