码迷,mamicode.com
首页 > 其他好文 > 详细

RSS

时间:2018-11-25 17:51:10      阅读:119      评论:0      收藏:0      [点我收藏+]

标签:reg   copy   register   range   written   this   extension   nal   cal   

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

标签:reg   copy   register   range   written   this   extension   nal   cal   

原文地址:https://www.cnblogs.com/rosendolu/p/10016016.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!