def postprocess_html(self, soup, first_fetch): for e in soup.findAll('a'): e['href'] = "http://s2r.me/" + e['href'] return soup