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.