mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 08:06:08 +01:00
Improve Revista Muy Intersante
This commit is contained in:
parent
8b9274d6ca
commit
2dbc7058f2
1 changed files with 7 additions and 0 deletions
|
|
@ -108,3 +108,10 @@ def parse_index(self):
|
|||
feeds.append((title, articles))
|
||||
return feeds
|
||||
|
||||
def get_cover_url(self):
|
||||
index = 'http://www.muyinteresante.es/revista'
|
||||
soup = self.index_to_soup(index)
|
||||
link_item = soup.find('img',attrs={'class':'img_portada'})
|
||||
if link_item:
|
||||
cover_url = "http://www.muyinteresante.es"+link_item['src']
|
||||
return cover_url
|
||||
|
|
|
|||
Loading…
Reference in a new issue