jaircazarin-old-account
jaircazarin-old-account

Reputation: 2895

Obtain the blog feed URL automatically

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

Answers (1)

configurator
configurator

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

Related Questions