Thursday, 15 January 2009

Stick two RSS feeds together

Yahoo Pipes logoUse Yahoo Pipes to take any number of feeds, mash them together and get one feed out the end.

I've just started experimenting with Yahoo Pipes, an online programme that allows you to collect data from different sources (RSS feeds, searches, websites...), filter this information (by date, type, size...) and then output it into a single feed (if that's what you want).

All the brackets in the above sentence highlight the flexibility of this programme and the functionality is huge, I’ve just been shown three different ways one of my colleagues is using Yahoo Pipes to mash-up data on our websites. Anyway, I’m just using it for RSS combining for the time being.

I have two feeds i want to stick together. They are:
So i 'fetch feed' for the two RSS feeds above. I then combine them with a 'Union' operator. I want them to be mixed up and sorted in date order so i 'sort' by date ('item.pubDate' to be precise).
Screenshot of joined up feeds in Yahoo Pipes
I finally connect the pipe output to produce:Done. You can now stick this feed through feedburner if you wish so that you can track subscriptions and let feedburner handle the caching.
There's loads more you can play with in Yahoo Pipes and also many ways to get the desired results. I had to play with the 'sort' to get the date order i wanted. Yahoo Pipes discussion boards have loads of tips which helped me figure this out.

No comments: