mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2106252 [Updated recipe for Pagina12](https://bugs.launchpad.net/calibre/+bug/2106252)
This commit is contained in:
parent
52cf1a1cc6
commit
7008725bb8
@ -2,7 +2,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2008-2024, Darko Miletic <darko.miletic at gmail.com>'
|
__copyright__ = '2008-2025, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
'''
|
'''
|
||||||
pagina12.com.ar
|
pagina12.com.ar
|
||||||
'''
|
'''
|
||||||
@ -51,17 +51,16 @@ class Pagina12(BasicNewsRecipe):
|
|||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name=['meta', 'link']),
|
dict(name=['meta', 'link']),
|
||||||
dict(attrs={'class':'article-main-media-social show-for-medium'})
|
dict(attrs={'class':['article-main-media-social show-for-medium', 'social-share-bar', 'iframely-embed medium-embedded-content']})
|
||||||
]
|
]
|
||||||
|
|
||||||
keep_only_tags=[
|
keep_only_tags=[
|
||||||
dict(name='div', attrs={'class':[
|
dict(name='h2', attrs={'class': lambda x: x and 'h4' in x}),
|
||||||
'article-header',
|
dict(name='h1'),
|
||||||
'article-titles',
|
dict(name='h2', attrs={'class': lambda x: x and 'h3' in x}),
|
||||||
'article-main-media-header',
|
dict(name='div', attrs={'class': 'author'}),
|
||||||
'article-main-media',
|
dict(name='div', attrs={'class': lambda x: x and 'article-main-media-image__container' in x}),
|
||||||
'article-text'
|
dict(name='div', attrs={'class': lambda x: x and 'article-main-content' in x})
|
||||||
]})
|
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_browser(self):
|
def get_browser(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user