View Single Post
Old 04-28-2011, 01:03 AM   #10
wonderose
Enthusiast
wonderose began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Apr 2011
Location: Berlin, Germany
Device: Android Tablets
I did this:

def preprocess_html(self, soup):
for alink in soup.findAll('a'):
if alink.string is not None:
tstr = alink.string
alink.replaceWith(tstr)
return self.adeify_images(soup)

But no improvement - nor even any change.
Is the code how you intended it to be?

Last edited by wonderose; 04-28-2011 at 07:05 AM.
wonderose is offline   Reply With Quote