Skip to content

Commit

Permalink
Merge branch 'update-recipe-netzpolitik' of https://github.com/tastyt…
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Nov 20, 2020
2 parents 82ba1b8 + 9138607 commit 95c3c42
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions recipes/netzpolitik.recipe
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
from calibre.web.feeds.news import BasicNewsRecipe


class BasicUserRecipe1257093186(BasicNewsRecipe):
class Netzpolitik(BasicNewsRecipe):
title = u'Netzpolitik'
publication_type = 'newspaper'
oldest_article = 14
language = 'de'
no_stylesheets = True
__author__ = 'Kovid Goyal'
max_articles_per_feed = 100
remove_tags = [dict(id=['respond', 'ackt', 'nav', 'commentblock',
'l_sidebar', 'r_sidebar']), dict(attrs={'class': ['widgettitle',
'bt-links', 'navigation']})]
use_embedded_content = True

feeds = [(u'Netzpolitik.org', u'http://www.netzpolitik.org/feed/')]
feeds = [(u'Netzpolitik.org', u'https://netzpolitik.org/feed/')]

def preprocess_html(self, soup):
# Remove the duplicate title image.
soup.body.img.decompose()
return soup

def get_cover_url(self):
return 'https://netzpolitik.org/wp-upload/2018/11/cropped-np_favicon_004-1-484x484.png'

0 comments on commit 95c3c42

Please sign in to comment.