calibre/recipes/kath_net.recipe
Kovid Goyal 6b10773c24
...
2020-12-21 09:26:59 +05:30

29 lines
827 B
Python

#!/usr/bin/env python
# vim:fileencoding=utf-8
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1608358960(BasicNewsRecipe):
title = 'kath.net'
__author__ = 'mseliger'
description = u'Katholische Nachrichten'
oldest_article = 7
language = 'de'
max_articles_per_feed = 25
auto_cleanup = True
no_stylesheets = True
encoding = 'utf-8'
feeds = [
('kath.net', 'https://www.kath.net/ticker/index.xml'),
]
def print_version(self, url):
return url.replace('https://www.kath.net/news/', 'https://www.kath.net/print/')
def get_browser(self, *a, **kwargs):
kwargs['verify_ssl_certificates'] = False
return BasicNewsRecipe.get_browser(self, *a, **kwargs)
extra_css = 'td.textb {font-size: medium;}'