Reputation: 895
Many html page has an url link to the RSS feed. If you have used google reader, you'll see if you add a site url (i.e: codemacro.com), it will automatically find the rss feed url which is codemacro.com/feed. So, my question is, how to find the rss url automatically?
Thanks.
Upvotes: 2
Views: 3603
Reputation: 751
You need to look for the <link>
s in the <head>
that give you the type of feed you are looking for. Most sites with feeds have links like:
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://rss.news.yahoo.com/rss/tech">
in their <head>
. So you need to find those links with whatever programming language you are using.
Upvotes: 5
Reputation: 174967
The RSS Feed is generally linked via either <link>
element, or with a normal <a>
link whose extension is .rss
The browser recognizes either of the two and displays proper options.
Upvotes: 0