Debian Codegraph @

recipes/ugeskriftet.recipe

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3
4 from calibre.web.feeds.news import BasicNewsRecipe
5
6
7 class Ugeskriftet(BasicNewsRecipe):
8 title = 'Ugeskriftet'
9 description = 'Ugeskriftet for læger'
10 language = 'da'
11 __author__ = 'https://github.com/morusn'
12 oldest_article = 7
13 publication_type = 'magazine'
14 max_articles_per_feed = 100
15 remove_empty_feeds = True
16 ignore_duplicate_articles = {'title', 'url'}
17 recursion = 5
18 encoding = 'utf-8'
19 keep_only_tags = [dict(attrs={'class': ['ArticleIntro', 'textComponent']})]
20 remove_tags = [dict(name='img')]
21 extra_css = '''
22 h1{font-weight: bold; font-size: large;}
23 b{font-weight: bold; font-size: medium;}
24 h2{font-weight: bold; font-size: large;}
25 h3{font-weight: bold; font-size: large;}
26 h4{font-weight: bold; font-size: large;}
27 '''
28
29 feeds = [
30 ('Ugeskriftet for læger', 'https://ugeskriftet.dk/rss/forside'),
31 ]