mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Improved recipe for O Globo
This commit is contained in:
parent
fb5902d7a0
commit
268397aa0c
@ -10,7 +10,7 @@ from calibre.web.feeds.news import BasicNewsRecipe
|
|||||||
class DN_se(BasicNewsRecipe):
|
class DN_se(BasicNewsRecipe):
|
||||||
title = 'Dagens Nyheter'
|
title = 'Dagens Nyheter'
|
||||||
__author__ = 'Darko Miletic'
|
__author__ = 'Darko Miletic'
|
||||||
description = 'News from Sveden'
|
description = 'News from Sweden'
|
||||||
publisher = 'Dagens Nyheter'
|
publisher = 'Dagens Nyheter'
|
||||||
category = 'news, politics, Sveden'
|
category = 'news, politics, Sveden'
|
||||||
oldest_article = 2
|
oldest_article = 2
|
||||||
|
@ -10,7 +10,7 @@ from calibre.web.feeds.news import BasicNewsRecipe
|
|||||||
|
|
||||||
class OGlobo(BasicNewsRecipe):
|
class OGlobo(BasicNewsRecipe):
|
||||||
title = 'O Globo'
|
title = 'O Globo'
|
||||||
__author__ = 'Darko Miletic'
|
__author__ = 'Darko Miletic and Sujata Raman'
|
||||||
description = 'News from Brasil'
|
description = 'News from Brasil'
|
||||||
publisher = 'O Globo'
|
publisher = 'O Globo'
|
||||||
category = 'news, politics, Brasil'
|
category = 'news, politics, Brasil'
|
||||||
@ -30,15 +30,26 @@ class OGlobo(BasicNewsRecipe):
|
|||||||
|
|
||||||
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
|
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"'
|
||||||
|
|
||||||
keep_only_tags = [dict(name='div', attrs={'id':'ltintb'})]
|
extra_css = '''
|
||||||
|
cite{color:#007BB5; font-size:xx-small; font-style:italic;}
|
||||||
|
body{font-family:Arial,Helvetica,sans-serif;font-size:x-small;}
|
||||||
|
h3{font-size:large; color:#082963; font-weight:bold;}
|
||||||
|
#ident{color:#0179B4; font-size:xx-small;}
|
||||||
|
p{color:#000000;font-weight:normal;}
|
||||||
|
.commentario p{color:#007BB5; font-style:italic;}
|
||||||
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
keep_only_tags = [dict(name='div', attrs={'id':'ltintb'}),
|
||||||
|
dict(name='a', attrs={'class':['img imgLoader','img ftr imgLoader']}),]
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name='script')
|
dict(name='script')
|
||||||
,dict(name='object')
|
,dict(name='object')
|
||||||
,dict(name='form')
|
,dict(name='form')
|
||||||
,dict(name='div', attrs={'id':['linksPatGoogle','rdpm','cor','com','env','rcm_st']})
|
,dict(name='div', attrs={'id':['linksPatGoogle','rdpm','cor','com','env','rcm_st','coment',]})
|
||||||
,dict(name='div', attrs={'class':'box-zap-anu2'})
|
,dict(name='div', attrs={'class':'box-zap-anu2'})
|
||||||
,dict(name='a')
|
,dict(name='a', attrs={'class':'assine'})
|
||||||
,dict(name='link')
|
,dict(name='link')
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ from calibre.web.feeds.news import BasicNewsRecipe
|
|||||||
class SVD_se(BasicNewsRecipe):
|
class SVD_se(BasicNewsRecipe):
|
||||||
title = 'Svenska Dagbladet'
|
title = 'Svenska Dagbladet'
|
||||||
__author__ = 'Darko Miletic'
|
__author__ = 'Darko Miletic'
|
||||||
description = 'News from Sveden'
|
description = 'News from Sweden'
|
||||||
publisher = 'Svenska Dagbladet'
|
publisher = 'Svenska Dagbladet'
|
||||||
category = 'news, politics, Sveden'
|
category = 'news, politics, Sveden'
|
||||||
oldest_article = 2
|
oldest_article = 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user