![[WWW]](https://cdn.statically.io/img/web.archive.org/web/20060213184553im_/http://developers.technorati.com/content/rightsidebar/img/moin-www.png)
It's homepage is on Joi Ito's wiki
Source:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | def cmd_blogrep(self, m): """ Search in technorati """ if (m == ""): return try: search = technorati.search(m) if (len(search.item) == 0): # Any result self.say('Technorati does not know anything about %s. Are you sure you are making the right decision?' % (m)) return elif (len(search.item) > 3): # More than three results, let's cut them results = search.item[:3] else: results = search.item self.say('Search for %s. Showing first %d of %d sites' % (m, len(results), len(search.item))) i = 0 while (i < len(results)) : # Remove html tags name = re.compile('(<p>|<br>)').sub(' ',results[i].name) name = re.compile('<(.*?)>').sub('', name) message = '%s - %s' % (name, results[i].url) self.say(message.encode('ISO-8859-1')) i += 1 except: self.say('Technorati took exception to \'%s\' ' % (m)) |