mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Clarin
This commit is contained in:
parent
f0d82724f9
commit
ce138b1744
@ -34,14 +34,11 @@ class Clarin(BasicNewsRecipe):
|
||||
needs_subscription = 'optional'
|
||||
INDEX = 'http://www.clarin.com'
|
||||
LOGIN = 'https://app-pase.clarin.com/pase-registracion/app/pase/ingresarNavegable?execution=e1s1'
|
||||
masthead_url = 'http://www.clarin.com/images/logo_clarin.svg'
|
||||
cover_url = strftime('http://tapas.clarin.com/tapa/%Y/%m/%d/%Y%m%d_thumb.jpg')
|
||||
|
||||
compress_news_images = True
|
||||
scale_news_images_to_device = True
|
||||
compress_news_images_max_size = 10 # kB
|
||||
scale_news_images = True
|
||||
handle_gzip = True
|
||||
|
||||
# To get all the data (images)
|
||||
auto_cleanup = False
|
||||
@ -132,7 +129,7 @@ class Clarin(BasicNewsRecipe):
|
||||
return br
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
for img in soup.findAll(['img']):
|
||||
for img in soup.findAll(['img'], attrs={'data-big': True}):
|
||||
img['src'] = img['data-big']
|
||||
|
||||
for figCaption in soup.findAll(['figcaption']):
|
||||
|
Loading…
x
Reference in New Issue
Block a user