Update Telepolis

This commit is contained in:
Kovid Goyal 2017-11-11 05:24:07 +05:30
parent 66aac30872
commit d5640ec8b7
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -5,16 +5,18 @@ from calibre.web.feeds.news import BasicNewsRecipe
class Telepolis(BasicNewsRecipe):
title = 'Telepolis'
title = 'Telepolis'
__author__ = 'Lutz Epperlein'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = True
recursions = 10
auto_cleanup = False
language = 'de'
feeds = [
('Telepolis', 'https://www.heise.de/tp/news-atom.xml'),
]
def is_link_wanted(self, url, tag):
return tag['class'] == 'seite_weiter'
remove_tags = [dict(name='p', attrs={'class':'printversion__back-to-article printversion--hide'})]
def get_article_url(self, article):
return article.link + "?view=print"