I'm getting worse at this, and feeling fatigued at trying. I can't get this to do anything whatsoever. The command prompt won't print my variables, won't download the articles... it just is a failure. I still would like to step through and see where it's failing. I'm about done trying
Code:
def preprocess_html(self,soup):
for pix in soup.findAll('img'):
next_tag=tag(soup, soup.body.nextSibling.name)
new_tag=tag(soup,'p')
new_tag.insert(0,pix)
next_tag.insert(0,new_tag)
return soup