0

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#.

Community
  • 1
  • 1
jaircazarin-old-account
  • 2,875
  • 3
  • 20
  • 17

1 Answers1

5

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.

configurator
  • 40,828
  • 14
  • 81
  • 115