mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-14 00:23:30 +02:00
Fix #910340 (Obtaining cover page in recipe La Razón, Bolivia)
This commit is contained in:
parent
b6d14d49c1
commit
3c2a2efd9d
1 changed files with 8 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ class LaRazon_Bol(BasicNewsRecipe):
|
|||
img{margin-bottom: 0.4em; display: block}
|
||||
.meta{font-size: small; font-family: Arial,Helvetica,sans-serif}
|
||||
"""
|
||||
INDEX = 'http://www.la-razon.com/'
|
||||
|
||||
conversion_options = {
|
||||
'comment' : description
|
||||
|
|
@ -60,3 +61,10 @@ def preprocess_html(self, soup):
|
|||
for item in soup.findAll(style=True):
|
||||
del item['style']
|
||||
return soup
|
||||
|
||||
def get_cover_url(self):
|
||||
soup = self.index_to_soup(self.INDEX)
|
||||
lightbox = soup.find('div', attrs = {'class' : 'lightbox lightbox-frontpage'})
|
||||
return lightbox.img['src']
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue