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
@ -6,15 +6,17 @@ from calibre.web.feeds.news import BasicNewsRecipe
|
|||||||
|
|
||||||
class Telepolis(BasicNewsRecipe):
|
class Telepolis(BasicNewsRecipe):
|
||||||
title = 'Telepolis'
|
title = 'Telepolis'
|
||||||
|
__author__ = 'Lutz Epperlein'
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
auto_cleanup = True
|
auto_cleanup = False
|
||||||
recursions = 10
|
|
||||||
language = 'de'
|
language = 'de'
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
('Telepolis', 'https://www.heise.de/tp/news-atom.xml'),
|
('Telepolis', 'https://www.heise.de/tp/news-atom.xml'),
|
||||||
]
|
]
|
||||||
|
|
||||||
def is_link_wanted(self, url, tag):
|
remove_tags = [dict(name='p', attrs={'class':'printversion__back-to-article printversion--hide'})]
|
||||||
return tag['class'] == 'seite_weiter'
|
|
||||||
|
def get_article_url(self, article):
|
||||||
|
return article.link + "?view=print"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user