RSS

Posted rosendolu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RSS相关的知识,希望对你有一定的参考价值。

XML RSS

RSS Example

<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">

<channel>
  <title>W3Schools Home Page</title>
  <link>https://www.w3schools.com</link>
  <description>Free web building tutorials</description>
  <item>
    <title>RSS Tutorial</title>
    <link>https://www.w3schools.com/xml/xml_rss.asp</link>
    <description>New RSS tutorial on W3Schools</description>
  </item>
  <item>
    <title>XML Tutorial</title>
    <link>https://www.w3schools.com/xml</link>
    <description>New XML tutorial on W3Schools</description>
  </item>
</channel>

</rss>

What Is RSS?

  • RSS stands for Really Simple Syndication

  • RSS allows you to syndicate you site content

  • RSS difines an easy way to share and view headlines and content

  • RSS files can be antomatically updated

  • RSS allows personalized views for different sites

  • RSS is written in XML

Get Your RSS Feed Up On The Web

  1. Name your RSS file. Notice that the file must have an .xml extension.

  2. Validate your RSS file (a good validator can be found at http://www.feedvalidator.org).

  3. Upload the RSS file to your web directory on your web server.

  4. Copy the little orange RSS Logo or XML Logo button to your web directory.

  5. Put the little orange "RSS" or "XML" button on the page where you will offer RSS to the world (e.g. on your home page). Then add a link to the button that links to the RSS file. The code will look something like this:

    技术分享图片
    .

  6. Submit your RSS feed to the RSS Feed Directories (you can Google or Yahoo for "RSS Feed Directories"). Note! The URL to your feed is not your home page, it is the URL to your feed, like "https://www.w3schools.com/xml/myfirstrss.xml". Here is a free RSS aggregation service:

Newsisfree: Register here

  • Register your feed with the major search engines:

Google - http://www.google.com/submityourcontent/website-owner
Bing - http://www.bing.com/toolbox/submit-site-url

  • Update your feed - After registering your RSS feed, you must make sure that you update your content frequently and that your RSS feed is constantly available.




以上是关于RSS的主要内容,如果未能解决你的问题,请参考以下文章

RSS代码与喜鹊RSS饲料

RSS 提要中的 RSS 规范 HTML 代码

PHP RSS代码与Magpie RSS Feeder

PHP Wordpress RSS短代码

分类RSS源代码

RSS 提要文章的共享功能