Scroll to top

13/12/2022


2022/12/13#p1

0 comments: click to leave a comment

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!

No comments yet
Leave a reply



You can also:

Click here to reply using email Reply by email Send a webmention Send a Webmention



Close