From 8152a84abbe8cf767cf2bbeebb693f39475e09b3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 19 Oct 2018 07:51:25 +0530 Subject: [PATCH] pep8 --- recipes/pc_lab.recipe | 1 + recipes/ppe_pl.recipe | 1 - recipes/pure_pc.recipe | 2 -- recipes/rynek_infrastruktury.recipe | 4 ++-- recipes/rzeczpospolita.recipe | 3 ++- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/recipes/pc_lab.recipe b/recipes/pc_lab.recipe index 0df923cd25..0f289e085f 100644 --- a/recipes/pc_lab.recipe +++ b/recipes/pc_lab.recipe @@ -1,4 +1,5 @@ #!/usr/bin/env python2 +import re from calibre.web.feeds.recipes import BasicNewsRecipe from calibre.ebooks.BeautifulSoup import Comment diff --git a/recipes/ppe_pl.recipe b/recipes/ppe_pl.recipe index 4f9bcd30d0..3c97b5e1af 100644 --- a/recipes/ppe_pl.recipe +++ b/recipes/ppe_pl.recipe @@ -1,7 +1,6 @@ #!/usr/bin/env python2 __license__ = 'GPL v3' -import re from calibre.web.feeds.news import BasicNewsRecipe diff --git a/recipes/pure_pc.recipe b/recipes/pure_pc.recipe index ae599c4759..8a72a220c4 100644 --- a/recipes/pure_pc.recipe +++ b/recipes/pure_pc.recipe @@ -1,6 +1,4 @@ -import re from calibre.web.feeds.news import BasicNewsRecipe -from calibre.ebooks.BeautifulSoup import Comment class PurePC(BasicNewsRecipe): diff --git a/recipes/rynek_infrastruktury.recipe b/recipes/rynek_infrastruktury.recipe index 62d4ba83d3..d020d4d407 100644 --- a/recipes/rynek_infrastruktury.recipe +++ b/recipes/rynek_infrastruktury.recipe @@ -26,8 +26,8 @@ class prawica_recipe(BasicNewsRecipe): (u'Kolej', u'http://www.rynekinfrastruktury.pl/rss/kolej.xml'), (u'Energetyka', u'http://www.rynekinfrastruktury.pl/rss/energetyka.xml') # no news in these feeds since 4 years: - #(u'Porty i lotniska', u'http://www.rynekinfrastruktury.pl/rss/porty-i-lotniska.xml'), - #(u'Komentarze', u'http://www.rynekinfrastruktury.pl/rss/komentarze-i-felietony.xml'), + # (u'Porty i lotniska', u'http://www.rynekinfrastruktury.pl/rss/porty-i-lotniska.xml'), + # (u'Komentarze', u'http://www.rynekinfrastruktury.pl/rss/komentarze-i-felietony.xml'), ] keep_only_tags = [ diff --git a/recipes/rzeczpospolita.recipe b/recipes/rzeczpospolita.recipe index 9fa67ad7de..e9e13e04ff 100644 --- a/recipes/rzeczpospolita.recipe +++ b/recipes/rzeczpospolita.recipe @@ -26,7 +26,8 @@ class RzeczpospolitaRecipe(BasicNewsRecipe): keep_only_tags = [] keep_only_tags.append(dict(name='h1', attrs={'id': 'article-title'})) keep_only_tags.append(dict(name='img', attrs={'class': 'img-responsive article__image'})) - keep_only_tags.append(dict(name='div', attrs={'class': ['article-content', 'article__lead js-voice-read', 'article__content js-voice-read','article__image-desc','article__image-author']})) + keep_only_tags.append(dict(name='div', attrs={'class': ['article-content', 'article__lead js-voice-read', + 'article__content js-voice-read','article__image-desc','article__image-author']})) remove_tags = [] remove_tags.append(dict(name='div', attrs={'class': 'related-articles__wrapper'}))