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
Name your RSS file. Notice that the file must have an .xml extension.
Validate your RSS file (a good validator can be found at http://www.feedvalidator.org).
Upload the RSS file to your web directory on your web server.
Copy the little orange RSS Logo or XML Logo button to your web directory.
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:
.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的主要内容,如果未能解决你的问题,请参考以下文章