Debian Codegraph @

recipes/financieele_dagblad.recipe

raw
1 from calibre.web.feeds.news import BasicNewsRecipe
2
3
4 class fd(BasicNewsRecipe):
5 title = 'Het Financieele Dagblad'
6 __author__ = 'marvin_2'
7 oldest_article = 7
8 max_articles_per_feed = 100
9 no_stylesheets = True
10 cover_url = 'http://www.fd.nl/static/gfx/logo-fd-164x78.gif'
11 language = 'nl'
12
13 keep_only_tags = dict(name='div', attrs={'class': ['headlinearticle']})
14 remove_tags = [dict(name='span', attrs={'class': ['opties']})]
15
16 feeds = [('Overzicht', 'https://fd.nl/laatste-nieuws?rss&profiel=OPENBAAR')]
17 extra_css = '''
18 h1 {font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:x-large;}
19 p{font-family:Arial,Helvetica,sans-serif;}
20 strong{font-weight:bold; margin-right:5pt;margin-top:20pt;}
21 .datum_ie {font-style:italic;font-size:small;}
22 img {align:left;}
23 '''