mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Improve Revista Muy Intersante
This commit is contained in:
parent
3ac65b82c0
commit
fa4986e6c8
@ -13,6 +13,8 @@ class RevistaMuyInteresante(BasicNewsRecipe):
|
|||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
|
|
||||||
|
conversion_options = {'linearize_tables': True}
|
||||||
|
|
||||||
extra_css = ' .txt_articulo{ font-family: sans-serif; font-size: medium; text-align: justify } .contentheading{font-family: serif; font-size: large; font-weight: bold; color: #000000; text-align: center}'
|
extra_css = ' .txt_articulo{ font-family: sans-serif; font-size: medium; text-align: justify } .contentheading{font-family: serif; font-size: large; font-weight: bold; color: #000000; text-align: center}'
|
||||||
|
|
||||||
|
|
||||||
@ -39,11 +41,12 @@ class RevistaMuyInteresante(BasicNewsRecipe):
|
|||||||
keep_only_tags = [dict(name='div', attrs={'class':['article']}),dict(name='td', attrs={'class':['txt_articulo']})]
|
keep_only_tags = [dict(name='div', attrs={'class':['article']}),dict(name='td', attrs={'class':['txt_articulo']})]
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name=['object','link','script','ul'])
|
dict(name=['object','link','script','ul','iframe','ins'])
|
||||||
,dict(name='div', attrs={'id':['comment']})
|
,dict(name='div', attrs={'id':['comment']})
|
||||||
,dict(name='td', attrs={'class':['buttonheading']})
|
,dict(name='td', attrs={'class':['buttonheading']})
|
||||||
,dict(name='div', attrs={'class':['tags_articles']})
|
,dict(name='div', attrs={'class':['tags_articles','bajo_title']})
|
||||||
,dict(name='table', attrs={'class':['pagenav']})
|
,dict(name='table', attrs={'class':['pagenav']})
|
||||||
|
,dict(name='form', attrs={'class':['voteform']})
|
||||||
]
|
]
|
||||||
|
|
||||||
remove_tags_after = dict(name='div', attrs={'class':'tags_articles'})
|
remove_tags_after = dict(name='div', attrs={'class':'tags_articles'})
|
||||||
@ -115,3 +118,5 @@ class RevistaMuyInteresante(BasicNewsRecipe):
|
|||||||
if link_item:
|
if link_item:
|
||||||
cover_url = "http://www.muyinteresante.es"+link_item['src']
|
cover_url = "http://www.muyinteresante.es"+link_item['src']
|
||||||
return cover_url
|
return cover_url
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user