Reputation: 2895
Given a blog URL, obtain its RSS feed URL. I know this question was asked here, but I'm looking for a framework independent algorithm, however I'd prefer code in C#.
Upvotes: 0
Views: 220
Reputation: 41640
Look for a
<link rel="alternate" type="..." href="..." />
tag in the page from the given URL.
The type will be application/atom+xml
for Atom, application/rss+xml
for RSS. The href will be the URL for the feed.
Upvotes: 5