Quote:
Originally Posted by kovidgoyal
postprocess_html takes two arguments, otherwise it looks fine.
|
I changed it to the following and added it to my recipe, no hyperlinks were removed. They were not removed in the previous version either. What's wrong with the code?
def postprocess_html(self, soup, first_fetch):
for a in soup.findAll('a', href=True):
del a['href']
return soup