mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Telepolis
This commit is contained in:
parent
66aac30872
commit
d5640ec8b7
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user