def urlparse(self, url): if self.cleanse(url) == False: return [url] fubs = 0 title = "Couldn't get title" site = Browser(url) if site.error: self.chat('Total fail: %s' % site.error) return [url] roasted = shorten(url) if not roasted: roasted = "Couldn't roast" fubs += 1 self.chat('%s @ %s' % (unescape(site.title()), roasted)) return [url]