RSSBus: A script to search 7 sources at once.

I've been using Chris Pirillo's search service a good bit since it first game out. Its really cool. While it has more to offer than just the multi-source search, I realized that the multi-source search would be really easy to implement with RSSBus. RSSBus, after all, does give me the ability to easily mesh together and manipulate feeds.

One of the service operation libraries that comes with RSSBus is called FeedOps, and one of the operations it contains is called FeedUnion. The FeedUnion operation takes RSS feeds as input, and spits back out a single RSS feed that contains all the items from the input feeds, minus any duplicates (duplicates happen to be determined by RSS guid or link elements). So I can easily implement a search of MSN, Yahoo News, Flickr, Ice Rocket, Technorati, Feedster, and Google News in just a few lines of script:

<rsb:set item="input" attr="feed1" value="" /> 
<rsb:set item="input" attr="feed2" value="" /> 
<rsb:set item="input" attr="feed3" value="" /> 
<rsb:set item="input" attr="feed4" value="" /> 
<rsb:set item="input" attr="feed5" value="" /> 
<rsb:set item="input" attr="feed6" value="" /> 
<rsb:set item="input" attr="feed7" value="" /> 

Then I call the feedUnion operation, passing the input item to it.

<rsb:call op="feedUnion" in="input">
<rsb:push />
Notice the rsb:push there. For each item that results from the feedUnion operation, I just push it to the resulting RSS feed. If I wanted, I could add other logic to alter the item before pushing it.


The resulting output of this script is an RSS feed containing items from all of these sources, eliminating any with duplicate rss link elements.

Print | posted on Monday, May 15, 2006 8:27 AM


# re: RSSBus: A script to search 7 sources at once.

Left by Chris Pirillo at 5/15/2006 11:57 AM
Gravatar Why not just easily import the OPML we generate? BTW, our fetcher is built in .NET (running in mono libraries).

# re: RSSBus: A script to search 7 sources at once.

Left by Lance Robinson at 5/15/2006 11:59 AM
Gravatar Chris, like I said - you have lots of great features - including OPML support.

In this post I am simply trying to demonstrate how RSSBus can let you work with feeds very easily.

Your comment:


Copyright © Lance Robinson

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski