Debian Codegraph @

recipes/kath_net.recipe

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3 from calibre.web.feeds.news import BasicNewsRecipe
4
5
6 class AdvancedUserRecipe1608358960(BasicNewsRecipe):
7 title = 'kath.net'
8 __author__ = 'mseliger'
9 description = 'Katholische Nachrichten'
10 oldest_article = 7
11 language = 'de'
12 max_articles_per_feed = 25
13 auto_cleanup = True
14 no_stylesheets = True
15 encoding = 'utf-8'
16
17 feeds = [
18 ('kath.net', 'https://www.kath.net/ticker/index.xml'),
19 ]
20
21 def print_version(self, url):
22 return url.replace('https://www.kath.net/news/', 'https://www.kath.net/print/')
23
24 def get_browser(self, *a, **kwargs):
25 kwargs['verify_ssl_certificates'] = False
26 return BasicNewsRecipe.get_browser(self, *a, **kwargs)
27
28 extra_css = 'td.textb {font-size: medium;}'