Debian Codegraph @

recipes/netzpolitik.recipe

raw
1 from calibre.web.feeds.news import BasicNewsRecipe
2
3
4 class Netzpolitik(BasicNewsRecipe):
5 title = 'Netzpolitik'
6 publication_type = 'newspaper'
7 oldest_article = 14
8 language = 'de'
9 no_stylesheets = True
10 __author__ = 'Kovid Goyal'
11 max_articles_per_feed = 100
12 use_embedded_content = True
13
14 feeds = [('Netzpolitik.org', 'https://netzpolitik.org/feed/')]
15
16 def preprocess_html(self, soup):
17 # Remove the duplicate title image.
18 soup.body.img.decompose()
19 return soup
20
21 def get_cover_url(self):
22 return 'https://netzpolitik.org/wp-upload/2018/11/cropped-np_favicon_004-1-484x484.png'