#!/usr/bin/env python import urllib, re, time, rsslib """ Technorati.com doesn't seem to want to provide RSS feeds for their site. Currently will create RSS for: http://technorati.com/pop/news/ http://technorati.com/pop/books/ http://technorati.com/pop/movies/ http://technorati.com/pop/blogs/ Author: Cameron Mallory http://YOURSITE You may use this code below as you see fit, in any form whatsoever. """ # Fully qualified path to where the RSS files will be created. outputDir = "/home/username/your/rss/files/" url = "url" title = "title" desc = "desc" file = "file" regex = "regex" # Our RSS files we will create. Popular = { 0 : { url : 'http://technorati.com/pop/movies/' , title : 'Popular Movies', desc : 'Technorati Popular Movies RSS', file : 'popmovies.xml', regex : '(.*?)' }, 1 : { url : 'http://technorati.com/pop/news/' , title : 'Popular News', desc : 'Technorati Popular News RSS', file : 'popnews.xml', regex : '(.*?)' }, 2 : { url : 'http://technorati.com/pop/books/' , title : 'Popular Books', desc : 'Technorati Popular Books RSS', file : 'popbooks.xml', regex : '(.*?)' }, 3 : { url : 'http://technorati.com/pop/blogs/' , title : 'Popular Blogs', desc : 'Technorati Popular Blogs RSS', file : 'popblogs.xml', regex : '(.*?)' } } TITLE = "Technorati RSS by YOURSITE" def process ( d , p ): rss = rsslib.RSS() rss.channel.link = p[ url ] rss.channel.title = TITLE + " - " + p[ title ] rss.channel.description = p[ desc ] urls = re.compile( '