View Single Post
Old 03-07-2011, 09:53 PM   #16
clintiepoo
Member
clintiepoo began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2011
Device: kindle
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
clintiepoo is offline   Reply With Quote