View Single Post
Old 02-29-2012, 07:19 AM   #11
adoucette
Member
adoucette doesn't litteradoucette doesn't litter
 
Posts: 24
Karma: 140
Join Date: Sep 2011
Device: Nook Color (rooted?)
Thanks Kovid, that did solve the issue. The final code for getting the cover is:
Code:
    def get_cover_url(self):
        cover_url = None
        soup = self.index_to_soup('http://www.abc.com')
        cover_item = soup.find('img', src=re.compile(r'\w*?cover\w{1,22}\.jpg'))
        if cover_item:
            cover_url = cover_item['src']
        return cover_url
I'll PM you the final recipe if you want it for Calibre.
adoucette is offline   Reply With Quote