Scroll to top

Dec 13, 2022

The home on the web of Colin Walker.
Find out more on /about, say /EHLO, or tune in to the daily RSS feed.

Dec 13, 2022#p1

It's frustrating when a site doesn't advertise it's feed. Yes, you can look at the page source but you shouldn't have to. So, I made a little tool to find the available feeds given a url.

Here's how it works:

  • load the page source and get all 'link' tags
  • check each link to see it has the 'rel' attribute that contains 'alternate'
  • if so, check for 'title' and 'href'
  • test if the href value is a valid RSS or Atom feed using the same feed library as /reader
  • if so, display the title and href value as a form

I've built this into the feed admin for /reader so that I can enter a page url, be presented with the available feeds, and subscribe with a single click.

Love it!