rssopml

Can I build an OPML file from a list of website URLs?


This happens a lot so I wonder if there's a tool for working around it. Often, I find a website with a blogroll or a links page with a long list of 20 or more websites. I sure would like to keep up with those sites via the feed reader of my choice, but it sure it tedious to click on each and every link, look for an RSS link, subscribe to that, wash, rinse, repeat.

My favorite feed reader will accept an OPML to batch import a list of feeds, so that's a start, but here's my question:

If all I have is a list of the website URLs, is there a way to generate an OPML of the RSS feeds?


Solution

  • I was able to create an OPML file. All I had to do was create a text file, with a URL on each line. Then, I was able to use a PHP script to look at each URL, hunt each for the RSS feed's address and add each RSS feed address to the OPML file.

    Incidentally, I've shared the project that this is part of on Github. I wanted to be able to subscribe to lots of litblogs at once.