Debian Codegraph @

recipes/telepolis.recipe

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3 from __future__ import absolute_import, division, print_function, unicode_literals
4
5 from calibre.web.feeds.news import BasicNewsRecipe
6
7
8 class Telepolis(BasicNewsRecipe):
9 title = 'Telepolis'
10 __author__ = 'Lutz Epperlein'
11 oldest_article = 10
12 max_articles_per_feed = 200
13 auto_cleanup = False
14 language = 'de'
15 scale_news_images = (758, 1024)
16 scale_news_images_to_device = True
17
18 feeds = [
19 ('Telepolis', 'https://www.heise.de/tp/news-atom.xml'),
20 ]
21
22 remove_tags = [dict(name='p', attrs={'class': 'printversion__back-to-article printversion--hide'})]
23
24 def get_article_url(self, article):
25 return article.link + '&view=print'