diff --git a/recipes/1843.recipe b/recipes/1843.recipe
index 4c5a016581..252f36d1c6 100644
--- a/recipes/1843.recipe
+++ b/recipes/1843.recipe
@@ -61,7 +61,7 @@ if use_archive:
data = json.loads(raw)
body = root.xpath('//body')[0]
article = E(body, 'article')
- E(article, 'div', data['flyTitle'] , style='color: red; font-size:small; font-weight:bold;')
+ E(article, 'div', data['flyTitle'], style='color: red; font-size:small; font-weight:bold;')
E(article, 'h1', data['title'], title=safe_dict(data, 'url', 'canonical') or '')
E(article, 'div', data['rubric'], style='font-style: italic; color:#202020;')
try:
@@ -96,7 +96,7 @@ else:
for child in tuple(body):
body.remove(child)
article = E(body, 'article')
- E(article, 'div', replace_entities(data['subheadline']) , style='color: red; font-size:small; font-weight:bold;')
+ E(article, 'div', replace_entities(data['subheadline']), style='color: red; font-size:small; font-weight:bold;')
E(article, 'h1', replace_entities(data['headline']))
E(article, 'div', replace_entities(data['description']), style='font-style: italic; color:#202020;')
if data['dateline'] is None:
diff --git a/recipes/aktualne.cz.recipe b/recipes/aktualne.cz.recipe
index ed1d647b8b..d1a8701769 100644
--- a/recipes/aktualne.cz.recipe
+++ b/recipes/aktualne.cz.recipe
@@ -32,7 +32,7 @@ class aktualneRecipe(BasicNewsRecipe):
remove_attributes = []
remove_tags_before = dict(name='h1', attrs={'class': ['titulek-clanku']})
filter_regexps = [r'img.aktualne.centrum.cz']
- remove_tags = [dict(name='div', attrs={'id': ['social-bookmark']}),
+ remove_tags = [dict(name='div', attrs={'id': ['social-bookmark']}),
dict(name='div', attrs={'class': ['box1', 'svazane-tagy']}),
dict(name='div', attrs={'class': 'itemcomment id0'}),
dict(name='div', attrs={'class': 'hlavicka'}),
diff --git a/recipes/al_jazeera.recipe b/recipes/al_jazeera.recipe
index 20817e7ca9..0e94bdc5dd 100644
--- a/recipes/al_jazeera.recipe
+++ b/recipes/al_jazeera.recipe
@@ -55,7 +55,7 @@ class AlJazeera(BasicNewsRecipe):
u'http://www.aljazeera.com/xml/rss/all.xml')]
def get_article_url(self, article):
- artlurl = article.get('link', None)
+ artlurl = article.get('link', None)
return artlurl
def preprocess_html(self, soup):
diff --git a/recipes/am730.recipe b/recipes/am730.recipe
index bf8b3c1ded..9b87b779a4 100644
--- a/recipes/am730.recipe
+++ b/recipes/am730.recipe
@@ -58,7 +58,7 @@ class AM730(BasicNewsRecipe):
articles = []
for aTag in soup.findAll('a',attrs={'class':'newsimglink'}):
href = aTag.get('href',False)
- if not href.encode('utf-8').startswith(url.encode('utf-8')) :
+ if not href.encode('utf-8').startswith(url.encode('utf-8')):
continue # not in same section
title = href.split('/')[-1].split('-')[0]
diff --git a/recipes/barrons.recipe b/recipes/barrons.recipe
index 898abe230b..007605fd0e 100644
--- a/recipes/barrons.recipe
+++ b/recipes/barrons.recipe
@@ -119,7 +119,7 @@ class barrons(BasicNewsRecipe):
byl = articles.find(**prefixed_classes('BarronsTheme--byline--'))
if byl:
desc += self.tag_to_string(byl)
- ttr = articles.find(**prefixed_classes('BarronsTheme--time-to-read--'))
+ ttr = articles.find(**prefixed_classes('BarronsTheme--time-to-read--'))
if ttr:
desc += self.tag_to_string(ttr)
summ = articles.find(**prefixed_classes('BarronsTheme--summary--'))
diff --git a/recipes/before_we_go.recipe b/recipes/before_we_go.recipe
index 8423a69af2..cb0516083c 100644
--- a/recipes/before_we_go.recipe
+++ b/recipes/before_we_go.recipe
@@ -26,7 +26,7 @@ class BeforeWeGo(BasicNewsRecipe):
remove_tags_after = dict(name='div', attrs={'id': 'author-bio'})
# remove_tags_after = dict(name='article')
- remove_tags = [
+ remove_tags = [
dict(name='div', attrs={'class': 'nectar-scrolling-text font_size_10vh custom_color has-custom-divider'}),
dict(name='span', attrs={'class': 'meta-comment-count'}),
dict(name='p', attrs={'id': 'breadcrumbs'})
diff --git a/recipes/blesk.recipe b/recipes/blesk.recipe
index 0b3380ea60..3a50ee8b8b 100644
--- a/recipes/blesk.recipe
+++ b/recipes/blesk.recipe
@@ -33,9 +33,9 @@ class bleskRecipe(BasicNewsRecipe):
remove_attributes = []
remove_tags_before = dict(name='div', attrs={'id': ['boxContent']})
remove_tags_after = dict(name='div', attrs={'class': ['artAuthors']})
- remove_tags = [dict(name='div', attrs={'class': ['link_clanek']}),
- dict(name='div', attrs={'id': ['partHeader']}),
- dict(name='div', attrs={'id': ['top_bottom_box', 'lista_top']})]
+ remove_tags = [dict(name='div', attrs={'class': ['link_clanek']}),
+ dict(name='div', attrs={'id': ['partHeader']}),
+ dict(name='div', attrs={'id': ['top_bottom_box', 'lista_top']})]
preprocess_regexps = [(re.compile(r'
')]
diff --git a/recipes/calgary_herald.recipe b/recipes/calgary_herald.recipe
index 01e2f0584d..741f507811 100644
--- a/recipes/calgary_herald.recipe
+++ b/recipes/calgary_herald.recipe
@@ -214,7 +214,7 @@ class CanWestPaper(BasicNewsRecipe):
divtags = soup.findAll('div', attrs={'id': ''})
if divtags:
for div in divtags:
- del (div['id'])
+ del div['id']
pgall = soup.find('div', attrs={'id': 'storyphoto'})
if pgall is not None: # photo gallery perhaps
diff --git a/recipes/cherta.recipe b/recipes/cherta.recipe
index a821fbf195..62ae6a18dc 100644
--- a/recipes/cherta.recipe
+++ b/recipes/cherta.recipe
@@ -22,7 +22,7 @@ class Cherta(BasicNewsRecipe):
remove_tags_after = dict(name='div', attrs={'class':'single-page__footer-info'})
- remove_tags = [
+ remove_tags = [
dict(name='div', attrs={'class': 'single-content-link'}),
dict(name='div', attrs={'class': 'single-page__footer-info_links clearfix'}),
dict(name='div', attrs={'class': 'single-article-tags-wrapper'})
diff --git a/recipes/clarin.recipe b/recipes/clarin.recipe
index 4138eca284..898a10a7f8 100644
--- a/recipes/clarin.recipe
+++ b/recipes/clarin.recipe
@@ -85,11 +85,11 @@ class Clarin(BasicNewsRecipe):
self.oldest_article = float(d)
keep_only_tags = [
- dict(name='p' , attrs={'class' : 'volanta'}),
- dict(name='h1' , attrs={'id': 'title'}),
- dict(name='div', attrs={'class' : 'bajada'}),
- dict(name='div', attrs={'id' : 'galeria-trigger'}),
- dict(name='div', attrs={'class' : 'body-nota'})
+ dict(name='p', attrs={'class': 'volanta'}),
+ dict(name='h1', attrs={'id': 'title'}),
+ dict(name='div', attrs={'class': 'bajada'}),
+ dict(name='div', attrs={'id': 'galeria-trigger'}),
+ dict(name='div', attrs={'class': 'body-nota'})
]
diff --git a/recipes/coda_ru.recipe b/recipes/coda_ru.recipe
index fb701b46e7..45147ceae6 100644
--- a/recipes/coda_ru.recipe
+++ b/recipes/coda_ru.recipe
@@ -22,7 +22,7 @@ class Coda(BasicNewsRecipe):
remove_tags_after = dict(name='div', attrs={'class': 'article'})
- remove_tags = [
+ remove_tags = [
dict(name='li', attrs={'class': 'material-meta__type'}),
dict(name='div', attrs={'class': 'more'})
]
diff --git a/recipes/computer_weekly.recipe b/recipes/computer_weekly.recipe
index ed63d407d0..7aad0dde7f 100644
--- a/recipes/computer_weekly.recipe
+++ b/recipes/computer_weekly.recipe
@@ -25,7 +25,7 @@ class ComputerWeekly(BasicNewsRecipe):
('Financial services IT news', 'https://www.computerweekly.com/rss/Financial-services-IT-news.xml'),
('Public sector IT news', 'https://www.computerweekly.com/rss/Public-sector-IT-news.xml'),
('Enterprise software', 'https://www.computerweekly.com/rss/Enterprise-software.xml'),
- ('SME IT news' , 'https://www.computerweekly.com/rss/SME-IT-news.xml'),
+ ('SME IT news', 'https://www.computerweekly.com/rss/SME-IT-news.xml'),
('Datacenter and cloud computing', 'https://www.computerweekly.com/rss/Datacentre-and-cloud-computing.xml'),
('Storage', 'https://www.computerweekly.com/rss/Storage.xml'),
('Information Management', 'https://www.computerweekly.com/rss/Information-management.xml'),
diff --git a/recipes/contropiano.recipe b/recipes/contropiano.recipe
index 26108dec66..31edae46b8 100644
--- a/recipes/contropiano.recipe
+++ b/recipes/contropiano.recipe
@@ -27,25 +27,18 @@ class AdvancedUserRecipe(BasicNewsRecipe):
remove_tags_after = dict(name='p', attrs={'class': ['firma-redazione']})
feeds = [
- (u'Politica',
- u'http://contropiano.org/news/politica-news/feed'),
- (u'Internazionale',
- u'http://contropiano.org/news/internazionale-news/feed'),
- (u'Aggiornamenti in breve', u'http://contropiano.org/news/aggiornamenti-in-breve/feed'),
- (u'Economia',
- u'http://contropiano.org/news/news-economia/feed'),
- (u'Ambiente',
- u'http://contropiano.org/news/ambiente-news/feed'),
- (u'Scienza',
- u'http://contropiano.org/news/scienza-news/feed'),
- (u'Cultura',
- u'http://contropiano.org/news/cultura-news/feed'),
+ (u'Politica', u'http://contropiano.org/news/politica-news/feed'),
+ (u'Internazionale', u'http://contropiano.org/news/internazionale-news/feed'),
+ (u'Aggiornamenti in breve', u'http://contropiano.org/news/aggiornamenti-in-breve/feed'),
+ (u'Economia', u'http://contropiano.org/news/news-economia/feed'),
+ (u'Ambiente', u'http://contropiano.org/news/ambiente-news/feed'),
+ (u'Scienza', u'http://contropiano.org/news/scienza-news/feed'),
+ (u'Cultura', u'http://contropiano.org/news/cultura-news/feed'),
(u'Locali', u'http://contropiano.org/regionali/feed'),
(u'Lavoro', u'http://contropiano.org/news/lavoro-conflitto-news/feed'),
- (u'Malapolizia', u'http://contropiano.org/news/malapolizia-news/feed'),
+ (u'Malapolizia', u'http://contropiano.org/news/malapolizia-news/feed'),
(u'Interventi', u'http://contropiano.org/interventi/feed'),
(u'Documenti', u'http://contropiano.org/documenti/feed'),
(u'Vignette', u'http://contropiano.org/vignette/feed'),
- (u'Altro',
- u'http://contropiano.org/altro/feed')
+ (u'Altro', u'http://contropiano.org/altro/feed')
]
diff --git a/recipes/cumhuriyet.recipe b/recipes/cumhuriyet.recipe
index 5284d33082..e7c56aac36 100644
--- a/recipes/cumhuriyet.recipe
+++ b/recipes/cumhuriyet.recipe
@@ -31,8 +31,8 @@ class Cumhuriyet(BasicNewsRecipe):
]
feeds = [
- ('Gundem', 'https://www.cumhuriyet.com.tr/rss/9999'),
- ('Dünya', 'https://www.cumhuriyet.com.tr/rss/4'),
+ ('Gundem', 'https://www.cumhuriyet.com.tr/rss/9999'),
+ ('Dünya', 'https://www.cumhuriyet.com.tr/rss/4'),
('Türkiye', 'https://www.cumhuriyet.com.tr/rss/3'),
('Ekonomi', 'https://www.cumhuriyet.com.tr/rss/5'),
('Kultur Sanat', 'https://www.cumhuriyet.com.tr/rss/6'),
diff --git a/recipes/degentenaar.recipe b/recipes/degentenaar.recipe
index fd42704dad..ca62cf9bb6 100644
--- a/recipes/degentenaar.recipe
+++ b/recipes/degentenaar.recipe
@@ -63,7 +63,7 @@ class DeGentenaarOnline(BasicNewsRecipe):
return url.replace('/Detail.aspx?articleid', '/PrintArticle.aspx?ArticleID')
def get_article_url(self, article):
- return article.get('guid', None)
+ return article.get('guid', None)
def preprocess_html(self, soup):
del soup.body['onload']
diff --git a/recipes/denik_referendum.recipe b/recipes/denik_referendum.recipe
index 35fdd1248c..486524ab67 100644
--- a/recipes/denik_referendum.recipe
+++ b/recipes/denik_referendum.recipe
@@ -25,4 +25,4 @@ class denikReferendumRecipe(BasicNewsRecipe):
remove_tags = [dict(name='div', attrs={'class': ['box boxLine', 'box noprint', 'box']}),
dict(name='h3', attrs={'class': 'head alt'})]
- keep_only_tags = [dict(name='div', attrs={'id': ['content']})]
+ keep_only_tags = [dict(name='div', attrs={'id': ['content']})]
diff --git a/recipes/deutschland_funk.recipe b/recipes/deutschland_funk.recipe
index 379fef1b59..d742b8fd41 100644
--- a/recipes/deutschland_funk.recipe
+++ b/recipes/deutschland_funk.recipe
@@ -29,7 +29,7 @@ class AdvancedUserRecipe1432200863(BasicNewsRecipe):
max_articles_per_feed = 100
auto_cleanup = False
- extra_css = '''
+ extra_css = '''
h1, h2 {font-size: 1.6em; text-align: left}
.article-header-description {font-size: 1em; font-style: italic; font-weight: normal;margin-bottom: 1em}
.b-image-figure, .caption-figure.is-left, .b-image-credits {font-size: .75em; font-weight: normal;margin-bottom: .75em}
diff --git a/recipes/dev_ua.recipe b/recipes/dev_ua.recipe
index d9730454ea..49e32138d4 100644
--- a/recipes/dev_ua.recipe
+++ b/recipes/dev_ua.recipe
@@ -24,7 +24,7 @@ class WiComix(BasicNewsRecipe):
remove_tags_after = dict(name='div', attrs={'class': 'article__body'})
- remove_tags = [
+ remove_tags = [
dict(name='div', attrs={'class': 'article__reference article__reference_header'}),
dict(name='div', attrs={'class': 'my-lg-5'}),
dict(name='div', attrs={'class': 'video '}),
diff --git a/recipes/echo_moskvy.recipe b/recipes/echo_moskvy.recipe
index 303ca03858..1f2600f77d 100644
--- a/recipes/echo_moskvy.recipe
+++ b/recipes/echo_moskvy.recipe
@@ -22,7 +22,7 @@ class EchoMsk(BasicNewsRecipe):
remove_tags_after = dict(name='article')
- remove_tags = [
+ remove_tags = [
dict(name='span', attrs={'class': 'sc-7b4cbb79-0 guzUFC'}),
dict(name='div', attrs={'class': 'sc-f94c4ef5-0 frGiYu'}),
dict(name='div', attrs={'class': 'sc-f94c4ef5-0 frGiYu'})
diff --git a/recipes/economist_espresso.recipe b/recipes/economist_espresso.recipe
index 6766cdae82..ed94653431 100644
--- a/recipes/economist_espresso.recipe
+++ b/recipes/economist_espresso.recipe
@@ -57,7 +57,7 @@ def load_article_from_json(raw, root):
data = json.loads(raw)
body = root.xpath('//body')[0]
article = E(body, 'article')
- E(article, 'div', data['flyTitle'] , style='color: red; font-size:small; font-weight:bold;')
+ E(article, 'div', data['flyTitle'], style='color: red; font-size:small; font-weight:bold;')
E(article, 'h1', data['title'], title=safe_dict(data, 'url', 'canonical') or '')
E(article, 'div', data['rubric'], style='font-style: italic; color:#202020;')
E(article, 'div', data['byline'], style='font-style: italic; color:#202020;')
diff --git a/recipes/edmonton_journal.recipe b/recipes/edmonton_journal.recipe
index 55be31438a..ade2091412 100644
--- a/recipes/edmonton_journal.recipe
+++ b/recipes/edmonton_journal.recipe
@@ -214,7 +214,7 @@ class CanWestPaper(BasicNewsRecipe):
divtags = soup.findAll('div', attrs={'id': ''})
if divtags:
for div in divtags:
- del (div['id'])
+ del div['id']
pgall = soup.find('div', attrs={'id': 'storyphoto'})
if pgall is not None: # photo gallery perhaps
diff --git a/recipes/el_pais.recipe b/recipes/el_pais.recipe
index b2d1bd90a5..d1a929c506 100644
--- a/recipes/el_pais.recipe
+++ b/recipes/el_pais.recipe
@@ -114,7 +114,7 @@ div.a_md_a {text-align: center; text-transform: uppercase; font-size: .8rem;}
from datetime import date
cover = ('https://srv00.epimg.net/pdf/elpais/snapshot/' +
str(date.today().year) + '/' + date.today().strftime('%m') + '/elpais/' +
- str(date.today().year) + date.today().strftime('%m') + date.today().strftime('%d') + 'Big.jpg')
+ str(date.today().year) + date.today().strftime('%m') + date.today().strftime('%d') + 'Big.jpg')
br = BasicNewsRecipe.get_browser(self)
try:
br.open(cover)
diff --git a/recipes/epoch_times.recipe b/recipes/epoch_times.recipe
index 26998ea5e3..576676a199 100644
--- a/recipes/epoch_times.recipe
+++ b/recipes/epoch_times.recipe
@@ -13,7 +13,7 @@ class EpochTimes(BasicNewsRecipe):
max_articles_per_feed = 20
ignore_duplicate_articles = {'url'}
remove_attributes = ['height', 'width', 'style']
- remove_empty_feeds = True
+ remove_empty_feeds = True
no_stylesheets = True
resolve_internal_links = True
masthead_url = 'https://epochtimes-ny.newsmemory.com/eeLayout/epochtimes/1.0.a/images/webapp/banner.png'
diff --git a/recipes/fastcompany.recipe b/recipes/fastcompany.recipe
index aeb295b973..84af8ec54c 100644
--- a/recipes/fastcompany.recipe
+++ b/recipes/fastcompany.recipe
@@ -45,7 +45,7 @@ class FastCompany(BasicNewsRecipe):
feeds = [(u'All News', u'http://feeds.feedburner.com/fastcompany/headlines')]
def get_article_url(self, article):
- return article.get('guid', None)
+ return article.get('guid', None)
def preprocess_html(self, soup):
soup.html['xml:lang'] = self.lang
diff --git a/recipes/faz_net.recipe b/recipes/faz_net.recipe
index 2a785e364a..e1ac34f1b4 100644
--- a/recipes/faz_net.recipe
+++ b/recipes/faz_net.recipe
@@ -93,24 +93,24 @@ class FazNet(BasicNewsRecipe):
# original by Armin Geller
# overhaul to deal with changes in the faz.net websites
- title = 'FAZ.NET'
- __author__ = 'Unknown'
- description = 'Frankfurter Allgemeine Zeitung'
- publisher = 'Frankfurter Allgemeine Zeitung GmbH'
- category = 'news, politics, Germany'
- cover_url = 'https://upload.wikimedia.org/wikipedia/commons/7/72/Frankfurter_Allgemeine_logo.svg'
- encoding = 'utf-8'
- language = 'de'
- ignore_duplicate_articles = {'title', 'url'}
- max_articles_per_feed = 30
- no_stylesheets = True
- remove_javascript = True
- scale_news_images = (10,100)
- delay = 1
+ title = 'FAZ.NET'
+ __author__ = 'Unknown'
+ description = 'Frankfurter Allgemeine Zeitung'
+ publisher = 'Frankfurter Allgemeine Zeitung GmbH'
+ category = 'news, politics, Germany'
+ cover_url = 'https://upload.wikimedia.org/wikipedia/commons/7/72/Frankfurter_Allgemeine_logo.svg'
+ encoding = 'utf-8'
+ language = 'de'
+ ignore_duplicate_articles = {'title', 'url'}
+ max_articles_per_feed = 30
+ no_stylesheets = True
+ remove_javascript = True
+ scale_news_images = (10,100)
+ delay = 1
test_feed = 'https://www.faz.net/rss/aktuell/feuilleton/kunst-und-architektur/berlinische-galerie-zeigt-edvard-munch-die-ganze-gefuehlsskala-des-lebens-19180631.html?printPagedArticle=true#pageIndex_2'
- extra_css = '''
+ extra_css = '''
.header-title,.scrolly-title {font-size: 1.5em; font-weight:bold; text-align:left;}
.quote {font-size: 1.5em; font-weight:bold; text-align:center;}
.author {font-size: 0.7em; font-weight:bold; text-align:center; display:block;
diff --git a/recipes/fluter_de.recipe b/recipes/fluter_de.recipe
index e8eb764f46..525ce1706f 100644
--- a/recipes/fluter_de.recipe
+++ b/recipes/fluter_de.recipe
@@ -26,7 +26,7 @@ class AdvancedUserRecipe1313693926(BasicNewsRecipe):
max_articles_per_feed = 50
auto_cleanup = False
- feeds = [
+ feeds = [
(u'Inhalt:', u'https://www.fluter.de/rss.xml')
]
@@ -38,6 +38,6 @@ class AdvancedUserRecipe1313693926(BasicNewsRecipe):
dict(name='h2', attrs={'class':'element-invisible'})
]
- extra_css = '''
+ extra_css = '''
.field-group-format, .group_additional_info, .additional-info {display: inline-block; min-width: 8rem; text-align: center}
'''
diff --git a/recipes/folhadesaopaulo_sub.recipe b/recipes/folhadesaopaulo_sub.recipe
index eed2870645..1dc33272e2 100644
--- a/recipes/folhadesaopaulo_sub.recipe
+++ b/recipes/folhadesaopaulo_sub.recipe
@@ -125,7 +125,7 @@ img { background: none !important; float: none; margin: 0px; }
break
elif strpost.startswith('
post: ', post)
diff --git a/recipes/footballua.recipe b/recipes/footballua.recipe
index fbcb7ba362..649bc88cca 100644
--- a/recipes/footballua.recipe
+++ b/recipes/footballua.recipe
@@ -25,7 +25,7 @@ class FootballUA(BasicNewsRecipe):
remove_tags_after = dict(name='article')
- remove_tags = [
+ remove_tags = [
dict(name='div', attrs={'class': 'bottom-info'}),
dict(name='div', attrs={'class': 'social-buttons'})
]
diff --git a/recipes/foreignaffairs.recipe b/recipes/foreignaffairs.recipe
index 3d049036a8..71a319d52a 100644
--- a/recipes/foreignaffairs.recipe
+++ b/recipes/foreignaffairs.recipe
@@ -188,7 +188,7 @@ class ForeignAffairsRecipe(BasicNewsRecipe):
for by in soup.findAll(**classes('topper__byline topper__date font-style-italic')):
by.name = 'div'
for img in soup.find_all('img', attrs={'srcset': True}):
- img['src'] = re.sub(r'_webp_small_\dx', '_webp_large_1x',img['srcset'].split()[0])
+ img['src'] = re.sub(r'_webp_small_\dx', '_webp_large_1x', img['srcset'].split()[0])
return soup
def get_browser(self):
diff --git a/recipes/gagadget_de.recipe b/recipes/gagadget_de.recipe
index 0fdc24ee06..3c19ccf8e5 100644
--- a/recipes/gagadget_de.recipe
+++ b/recipes/gagadget_de.recipe
@@ -32,7 +32,7 @@ class Gagadget(BasicNewsRecipe):
# Ukrainian version only
# remove_tags_after = dict(name='div', attrs={'class': 'top20 bottom20 post-links'})
- # remove_tags = [
+ # remove_tags = [
# dict(name='div', attrs={'class': 'footer-content'}),
# ]
diff --git a/recipes/gagadget_en.recipe b/recipes/gagadget_en.recipe
index 7ae5110f9f..5d29a797bc 100644
--- a/recipes/gagadget_en.recipe
+++ b/recipes/gagadget_en.recipe
@@ -32,7 +32,7 @@ class Gagadget(BasicNewsRecipe):
# Ukrainian version only
# remove_tags_after = dict(name='div', attrs={'class': 'top20 bottom20 post-links'})
- # remove_tags = [
+ # remove_tags = [
# dict(name='div', attrs={'class': 'footer-content'}),
# ]
diff --git a/recipes/gagadget_es.recipe b/recipes/gagadget_es.recipe
index 47a16ce9c2..e50af1e27d 100644
--- a/recipes/gagadget_es.recipe
+++ b/recipes/gagadget_es.recipe
@@ -32,7 +32,7 @@ class Gagadget(BasicNewsRecipe):
# Ukrainian version only
# remove_tags_after = dict(name='div', attrs={'class': 'top20 bottom20 post-links'})
- # remove_tags = [
+ # remove_tags = [
# dict(name='div', attrs={'class': 'footer-content'}),
# ]
diff --git a/recipes/gagadget_fr.recipe b/recipes/gagadget_fr.recipe
index 535d5b2cff..e82efc797e 100644
--- a/recipes/gagadget_fr.recipe
+++ b/recipes/gagadget_fr.recipe
@@ -32,7 +32,7 @@ class Gagadget(BasicNewsRecipe):
# Ukrainian version only
# remove_tags_after = dict(name='div', attrs={'class': 'top20 bottom20 post-links'})
- # remove_tags = [
+ # remove_tags = [
# dict(name='div', attrs={'class': 'footer-content'}),
# ]
diff --git a/recipes/gagadget_it.recipe b/recipes/gagadget_it.recipe
index 45c001e9c0..58325232ba 100644
--- a/recipes/gagadget_it.recipe
+++ b/recipes/gagadget_it.recipe
@@ -32,7 +32,7 @@ class Gagadget(BasicNewsRecipe):
# Ukrainian version only
# remove_tags_after = dict(name='div', attrs={'class': 'top20 bottom20 post-links'})
- # remove_tags = [
+ # remove_tags = [
# dict(name='div', attrs={'class': 'footer-content'}),
# ]
diff --git a/recipes/gagadget_nb.recipe b/recipes/gagadget_nb.recipe
index 19dc15a06c..d3365e34b4 100644
--- a/recipes/gagadget_nb.recipe
+++ b/recipes/gagadget_nb.recipe
@@ -32,7 +32,7 @@ class Gagadget(BasicNewsRecipe):
# Ukrainian version only
# remove_tags_after = dict(name='div', attrs={'class': 'top20 bottom20 post-links'})
- # remove_tags = [
+ # remove_tags = [
# dict(name='div', attrs={'class': 'footer-content'}),
# ]
diff --git a/recipes/gagadget_nl.recipe b/recipes/gagadget_nl.recipe
index 73709506dc..01e446f209 100644
--- a/recipes/gagadget_nl.recipe
+++ b/recipes/gagadget_nl.recipe
@@ -32,7 +32,7 @@ class Gagadget(BasicNewsRecipe):
# Ukrainian version only
# remove_tags_after = dict(name='div', attrs={'class': 'top20 bottom20 post-links'})
- # remove_tags = [
+ # remove_tags = [
# dict(name='div', attrs={'class': 'footer-content'}),
# ]
diff --git a/recipes/gagadget_ru.recipe b/recipes/gagadget_ru.recipe
index 74405b3672..524b470b14 100644
--- a/recipes/gagadget_ru.recipe
+++ b/recipes/gagadget_ru.recipe
@@ -33,7 +33,7 @@ class Gagadget(BasicNewsRecipe):
# Ukrainian version only
# remove_tags_after = dict(name='div', attrs={'class': 'top20 bottom20 post-links'})
- # remove_tags = [
+ # remove_tags = [
# dict(name='div', attrs={'class': 'footer-content'}),
# ]
diff --git a/recipes/gagadget_ua.recipe b/recipes/gagadget_ua.recipe
index 06858d7454..14ba4461f3 100644
--- a/recipes/gagadget_ua.recipe
+++ b/recipes/gagadget_ua.recipe
@@ -32,7 +32,7 @@ class Gagadget(BasicNewsRecipe):
# Ukrainian version only
remove_tags_after = dict(name='div', attrs={'class': 'top20 bottom20 post-links'})
- remove_tags = [
+ remove_tags = [
dict(name='div', attrs={'class': 'footer-content'}),
]
diff --git a/recipes/gazetaua_ru.recipe b/recipes/gazetaua_ru.recipe
index beecf13bff..f3a3c22476 100644
--- a/recipes/gazetaua_ru.recipe
+++ b/recipes/gazetaua_ru.recipe
@@ -23,7 +23,7 @@ class GazetaUA(BasicNewsRecipe):
remove_tags_after = dict(name='section', attrs={'class': 'article-content clearfix'})
- remove_tags = [
+ remove_tags = [
dict(name='div', attrs={'class': 'mt5'}),
dict(name='div', attrs={'class': 'interview-block'}),
dict(name='p', attrs={'id': 'mce_0'}),
diff --git a/recipes/gazetaua_ua.recipe b/recipes/gazetaua_ua.recipe
index 3899ac96bf..02a50c9a59 100644
--- a/recipes/gazetaua_ua.recipe
+++ b/recipes/gazetaua_ua.recipe
@@ -23,7 +23,7 @@ class GazetaUA(BasicNewsRecipe):
remove_tags_after = dict(name='section', attrs={'class': 'article-content clearfix'})
- remove_tags = [
+ remove_tags = [
dict(name='div', attrs={'class': 'mt5'}),
dict(name='div', attrs={'class': 'interview-block'}),
dict(name='p', attrs={'id': 'mce_0'}),
diff --git a/recipes/geekcity.recipe b/recipes/geekcity.recipe
index b62bfb4efa..4e8aa97845 100644
--- a/recipes/geekcity.recipe
+++ b/recipes/geekcity.recipe
@@ -21,7 +21,7 @@ class GeekCity(BasicNewsRecipe):
remove_tags_after = dict(name='article')
- remove_tags = [
+ remove_tags = [
dict(name='div', attrs={'class': 'term-badges floated'}),
dict(name='div', attrs={'class': 'post-meta single-post-meta'}),
dict(name='div', attrs={'class': 'post-share single-post-share top-share clearfix style-1'}),
diff --git a/recipes/gorky.recipe b/recipes/gorky.recipe
index c82fd41b69..8bc7988cc4 100644
--- a/recipes/gorky.recipe
+++ b/recipes/gorky.recipe
@@ -22,7 +22,7 @@ class Gorky(BasicNewsRecipe):
remove_tags_after = dict(name='footer')
- remove_tags = [
+ remove_tags = [
dict(name='footer'),
dict(name='nav', attrs={'class': 'navbar'}),
dict(name='div', attrs={'class': 'hide'}),
diff --git a/recipes/hindustan.recipe b/recipes/hindustan.recipe
index 8ca4efe0bd..262ef267f1 100644
--- a/recipes/hindustan.recipe
+++ b/recipes/hindustan.recipe
@@ -28,7 +28,7 @@ class LiveHindustan(BasicNewsRecipe):
remove_tags_after = [classes('stry-bdy')]
feeds = [
- ('प्रमुख खबरें' ,'https://feed.livehindustan.com/rss/3127'),
+ ('प्रमुख खबरें', 'https://feed.livehindustan.com/rss/3127'),
('देश', 'https://feed.livehindustan.com/rss/4911'),
('विदेश', 'https://feed.livehindustan.com/rss/4913'),
('ओपिनियन', 'https://feed.livehindustan.com/rss/5165'),
diff --git a/recipes/idnes.recipe b/recipes/idnes.recipe
index cca9499fb1..3375979f0a 100644
--- a/recipes/idnes.recipe
+++ b/recipes/idnes.recipe
@@ -26,9 +26,8 @@ class iHeuteRecipe(BasicNewsRecipe):
no_stylesheets = True
remove_attributes = ['width', 'height']
- remove_tags = [dict(name='div', attrs={'id': ['zooming']}),
- dict(name='div', attrs={
- 'class': ['related', 'mapa-wrapper']}),
+ remove_tags = [dict(name='div', attrs={'id': ['zooming']}),
+ dict(name='div', attrs={'class': ['related', 'mapa-wrapper']}),
dict(name='table', attrs={'id': ['opener-img', 'portal']}),
dict(name='table', attrs={'class': ['video-16ku9']})]
remove_tags_after = [
diff --git a/recipes/il_fatto.recipe b/recipes/il_fatto.recipe
index 66af6e3d2f..800749978d 100644
--- a/recipes/il_fatto.recipe
+++ b/recipes/il_fatto.recipe
@@ -10,29 +10,21 @@ class AdvancedUserRecipe1286477122(BasicNewsRecipe):
__author__ = 'egilh'
feeds = [
- (u'Politica & Palazzo',
- u'http://www.ilfattoquotidiano.it/category/politica-palazzo/feed/'),
- (u'Giustizia & impunit\xe0',
- u'http://www.ilfattoquotidiano.it/category/giustizia-impunita/feed/'),
- (u'Media & regime', u'http://www.ilfattoquotidiano.it/category/media-regime/feed/'),
- (u'Economia & Lobby',
- u'http://www.ilfattoquotidiano.it/category/economia-lobby/feed/'),
- (u'Lavoro & precari',
- u'http://www.ilfattoquotidiano.it/category/lavoro-precari/feed/'),
- (u'Ambiente & Veleni',
- u'http://www.ilfattoquotidiano.it/category/ambiente-veleni/feed/'),
- (u'Sport & miliardi',
- u'http://www.ilfattoquotidiano.it/category/sport-miliardi/feed/'),
+ (u'Politica & Palazzo', u'http://www.ilfattoquotidiano.it/category/politica-palazzo/feed/'),
+ (u'Giustizia & impunit\xe0', u'http://www.ilfattoquotidiano.it/category/giustizia-impunita/feed/'),
+ (u'Media & regime', u'http://www.ilfattoquotidiano.it/category/media-regime/feed/'),
+ (u'Economia & Lobby', u'http://www.ilfattoquotidiano.it/category/economia-lobby/feed/'),
+ (u'Lavoro & precari', u'http://www.ilfattoquotidiano.it/category/lavoro-precari/feed/'),
+ (u'Ambiente & Veleni', u'http://www.ilfattoquotidiano.it/category/ambiente-veleni/feed/'),
+ (u'Sport & miliardi', u'http://www.ilfattoquotidiano.it/category/sport-miliardi/feed/'),
(u'Cronaca', u'http://www.ilfattoquotidiano.it/category/cronaca/feed/'),
(u'Mondo', u'http://www.ilfattoquotidiano.it/category/mondo/feed/'),
- (u'Societ\xe0', u'http://www.ilfattoquotidiano.it/category/societa/feed/'),
+ (u'Societ\xe0', u'http://www.ilfattoquotidiano.it/category/societa/feed/'),
(u'Scuola', u'http://www.ilfattoquotidiano.it/category/scuola/feed/'),
(u'Tecno', u'http://www.ilfattoquotidiano.it/category/tecno/feed/'),
(u'Terza pagina', u'http://www.ilfattoquotidiano.it/category/terza-pagina/feed/'),
- (u'Piacere quotidiano',
- u'http://www.ilfattoquotidiano.it/category/piacere-quotidiano/feed/'),
- (u'Cervelli in fuga',
- u'http://www.ilfattoquotidiano.it/category/cervelli-in-fuga/feed/'),
+ (u'Piacere quotidiano', u'http://www.ilfattoquotidiano.it/category/piacere-quotidiano/feed/'),
+ (u'Cervelli in fuga', u'http://www.ilfattoquotidiano.it/category/cervelli-in-fuga/feed/'),
(u'Documentati!', u'http://www.ilfattoquotidiano.it/category/documentati/feed/'),
(u'Misfatto', u'http://www.ilfattoquotidiano.it/category/misfatto/feed/')
]
diff --git a/recipes/il_messaggero.recipe b/recipes/il_messaggero.recipe
index 43b67cf76a..7225877c54 100644
--- a/recipes/il_messaggero.recipe
+++ b/recipes/il_messaggero.recipe
@@ -36,7 +36,7 @@ class IlMessaggero(BasicNewsRecipe):
dict(name='h2', attrs={
'class': ['sottotitLettura', 'grigio16']}),
dict(name='span', attrs={'class': 'testoArticoloG'}),
- dict(name='div', attrs={'id': 'testodim'})
+ dict(name='div', attrs={'id': 'testodim'})
]
def get_cover_url(self):
diff --git a/recipes/ilmanifesto.recipe b/recipes/ilmanifesto.recipe
index e39ce9bf74..5f252204a1 100644
--- a/recipes/ilmanifesto.recipe
+++ b/recipes/ilmanifesto.recipe
@@ -34,7 +34,7 @@ class IlManifesto(BasicNewsRecipe):
startSoup = self.index_to_soup(startUrl)
lastEdition = startSoup.findAll('div', id='accordion_inedicola')[
1].find('a')['href']
- del (startSoup)
+ del startSoup
self.manifesto_index = MANIFESTO_BASEURL + lastEdition
urlsplit = lastEdition.split('/')
self.manifesto_datestr = urlsplit[-1]
@@ -106,5 +106,5 @@ class IlManifesto(BasicNewsRecipe):
summary = sommNode
template = "%(title)s%(title)s
%(subtitle)s
%(author)s
%(summary)s
%(content)s
" # noqa: E501
- del (bs)
+ del bs
return template % dict(title=title, subtitle=subtitle, author=author, summary=summary, content=content)
diff --git a/recipes/india_today.recipe b/recipes/india_today.recipe
index d5b1594e07..0b6f15ef91 100644
--- a/recipes/india_today.recipe
+++ b/recipes/india_today.recipe
@@ -115,6 +115,6 @@ class IndiaToday(BasicNewsRecipe):
imagecap = '' + data['image_caption'] + '
'
html = '' + slug + '' + title + '
\n' + desc + ''\
- + author + ' ' + city + ' UPDATED: ' + date + '
\n' + image + imagecap + body\
+ + author + ' ' + city + ' UPDATED: ' + date + ' \n' + image + imagecap + body\
+ ''
return html
diff --git a/recipes/irish_times.recipe b/recipes/irish_times.recipe
index 90cbdd1a87..9f0637435e 100644
--- a/recipes/irish_times.recipe
+++ b/recipes/irish_times.recipe
@@ -121,7 +121,7 @@ class IrishTimes(BasicNewsRecipe):
'sec-fetch-site': 'same-origin',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
- }, data=urlencode({'username': self.username, 'password': self.password, 'deviceid':deviceid, 'persistent':'on', 'rid': ''}))
+ }, data=urlencode({'username': self.username, 'password': self.password, 'deviceid':deviceid, 'persistent':'on', 'rid': ''}))
r = br.open(rq)
raw = r.read()
diff --git a/recipes/jot_down.recipe b/recipes/jot_down.recipe
index b1b9deccd7..b078edd90c 100644
--- a/recipes/jot_down.recipe
+++ b/recipes/jot_down.recipe
@@ -47,7 +47,7 @@ class jotdown(BasicNewsRecipe):
dict(name='div', attrs={'id':'respond'})
]
- remove_tags_after = dict(name='div' , attrs={'id':'respond'})
+ remove_tags_after = dict(name='div', attrs={'id':'respond'})
preprocess_regexps = [
# To change the small size of the text
diff --git a/recipes/kompiutierra.recipe b/recipes/kompiutierra.recipe
index d34a60b365..6e2064ddb1 100644
--- a/recipes/kompiutierra.recipe
+++ b/recipes/kompiutierra.recipe
@@ -26,7 +26,7 @@ class Computerra(BasicNewsRecipe):
remove_tags_after = dict(name='article')
- remove_tags = [
+ remove_tags = [
dict(name='ul', attrs={'class': 'breadcrumbs'}),
dict(name='div', attrs={'class': 'post-info__likes post-info-likes'}),
dict(name='div', attrs={'class': 'cta-row'}),
diff --git a/recipes/kudy_z_nudy.recipe b/recipes/kudy_z_nudy.recipe
index 963d3185a9..29aa54e224 100644
--- a/recipes/kudy_z_nudy.recipe
+++ b/recipes/kudy_z_nudy.recipe
@@ -30,7 +30,7 @@ class kudyznudyRecipe(BasicNewsRecipe):
name='div', attrs={'class': ['C_WholeContentPadding']})
remove_tags_after = dict(
name='div', attrs={'class': ['SurroundingsContainer']})
- remove_tags = [dict(name='div', attrs={
+ remove_tags = [dict(name='div', attrs={
'class': ['Details', 'buttons', 'SurroundingsContainer', 'breadcrumb']})]
keep_only_tags = []
diff --git a/recipes/la_jornada.recipe b/recipes/la_jornada.recipe
index ea13c1cf7d..355d6a6017 100644
--- a/recipes/la_jornada.recipe
+++ b/recipes/la_jornada.recipe
@@ -111,7 +111,7 @@ class LaJornada_mx(BasicNewsRecipe):
def get_article_url(self, article):
# Get link to original article URL
- rurl = article.get('guid', None)
+ rurl = article.get('guid', None)
if not rurl:
# Use the "link" attribute as failover
return article.get('link', None)
diff --git a/recipes/libertad_digital.recipe b/recipes/libertad_digital.recipe
index b3a571345b..834166e00c 100644
--- a/recipes/libertad_digital.recipe
+++ b/recipes/libertad_digital.recipe
@@ -50,7 +50,7 @@ class LibertadDigital(BasicNewsRecipe):
]
def get_article_url(self, article):
- return article.get('guid', None)
+ return article.get('guid', None)
def print_version(self, url):
art, sep, rest = url.rpartition('/')
diff --git a/recipes/lrb.recipe b/recipes/lrb.recipe
index 01e958e83c..37b1150608 100644
--- a/recipes/lrb.recipe
+++ b/recipes/lrb.recipe
@@ -12,7 +12,7 @@ def classes(classes):
def absolutize(href):
if href.startswith('/'):
- href = 'https://www.lrb.co.uk' + href
+ href = 'https://www.lrb.co.uk' + href
return href
diff --git a/recipes/marca.recipe b/recipes/marca.recipe
index 0235ce8ff4..48c0b436f0 100644
--- a/recipes/marca.recipe
+++ b/recipes/marca.recipe
@@ -46,4 +46,4 @@ class Marca(BasicNewsRecipe):
return soup
def get_article_url(self, article):
- return article.get('guid', None)
+ return article.get('guid', None)
diff --git a/recipes/mediapart.recipe b/recipes/mediapart.recipe
index a69df9fb41..9aa66689c6 100644
--- a/recipes/mediapart.recipe
+++ b/recipes/mediapart.recipe
@@ -95,7 +95,7 @@ class Mediapart(BasicNewsRecipe):
for feed in feeds:
feed_name = feed.title.lower()
for article in feed.articles:
- if feed_name != 'autres' and feed_name not in article.url:
+ if feed_name != 'autres' and feed_name not in article.url:
feed.articles.remove(article)
if feed_name == 'autres' and any(section in article.url for section in self.sections):
feed.articles.remove(article)
diff --git a/recipes/montreal_gazette.recipe b/recipes/montreal_gazette.recipe
index 1ae5c6743a..bb8b4b25eb 100644
--- a/recipes/montreal_gazette.recipe
+++ b/recipes/montreal_gazette.recipe
@@ -214,7 +214,7 @@ class CanWestPaper(BasicNewsRecipe):
divtags = soup.findAll('div', attrs={'id': ''})
if divtags:
for div in divtags:
- del (div['id'])
+ del div['id']
pgall = soup.find('div', attrs={'id': 'storyphoto'})
if pgall is not None: # photo gallery perhaps
diff --git a/recipes/moscowtimes_en.recipe b/recipes/moscowtimes_en.recipe
index 6045055486..8ab1832838 100644
--- a/recipes/moscowtimes_en.recipe
+++ b/recipes/moscowtimes_en.recipe
@@ -22,7 +22,7 @@ class MoscowTimes(BasicNewsRecipe):
remove_tags_after = dict(name='div', attrs={'class': 'article__tags'})
- remove_tags = [
+ remove_tags = [
dict(name='aside'),
dict(name='footer'),
dict(name='section', attrs={'class': 'cluster'}),
diff --git a/recipes/naszdziennik.recipe b/recipes/naszdziennik.recipe
index c88a89e4aa..4868171f2d 100644
--- a/recipes/naszdziennik.recipe
+++ b/recipes/naszdziennik.recipe
@@ -60,7 +60,7 @@ class naszdziennik(BasicNewsRecipe):
article_title_datetime.find('h4'))
# zebrane elementy dodajemy do listy zadeklarowanej w linijce 44
articles[section].append(
- {'title': article_title, 'url': article_url, 'date': article_date})
+ {'title': article_title, 'url': article_url, 'date': article_date})
# po dodaniu wszystkich artykułów dodajemy sekcje do listy feedów,
# korzystając z list sekcji znajdujących się w słowniku
for section in sections:
diff --git a/recipes/navy_times.recipe b/recipes/navy_times.recipe
index bd3f297e65..021b3ca26d 100644
--- a/recipes/navy_times.recipe
+++ b/recipes/navy_times.recipe
@@ -27,12 +27,12 @@ class NavyTimes(BasicNewsRecipe):
('Home page', 'https://www.navytimes.com/arc/outboundfeeds/rss/?outputType=xml'),
('News', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/news/?outputType=xml'),
('Your Navy', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/news/your-navy/?outputType=xml'),
- ('Your Army', 'https://www.armytimes.com/arc/outboundfeeds/rss/category/news/your-army/?outputType=xml'),
+ ('Your Army', 'https://www.armytimes.com/arc/outboundfeeds/rss/category/news/your-army/?outputType=xml'),
('Your Air Force', 'https://www.airforcetimes.com/arc/outboundfeeds/rss/category/news/your-air-force?outputType=xml'),
- ('Your Marine Core', 'https://www.marinecorpstimes.com/arc/outboundfeeds/rss/category/news/your-marine-corps/?outputType=xml'),
- ('Pentagon and Congress', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/news/pentagon-congress/?outputType=xml'),
- ('Pay and Benefits', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/pay-benefits/?outputType=xml'),
- ('Veterans', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/veterans/?outputType=xml'),
- ('Education and Transition', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/education-transition/?outputType=xml'),
- ('Flashpoints', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/flashpoints/?outputType=xml'),
+ ('Your Marine Core', 'https://www.marinecorpstimes.com/arc/outboundfeeds/rss/category/news/your-marine-corps/?outputType=xml'),
+ ('Pentagon and Congress', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/news/pentagon-congress/?outputType=xml'),
+ ('Pay and Benefits', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/pay-benefits/?outputType=xml'),
+ ('Veterans', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/veterans/?outputType=xml'),
+ ('Education and Transition', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/education-transition/?outputType=xml'),
+ ('Flashpoints', 'https://www.navytimes.com/arc/outboundfeeds/rss/category/flashpoints/?outputType=xml'),
]
diff --git a/recipes/nepszabadsag.recipe b/recipes/nepszabadsag.recipe
index a0b9f5279d..51612d42b8 100644
--- a/recipes/nepszabadsag.recipe
+++ b/recipes/nepszabadsag.recipe
@@ -29,7 +29,7 @@ class nepszabadsag(BasicNewsRecipe):
remove_attributes = []
remove_tags_before = dict(name='div', attrs={'class': ['d-source']})
remove_tags_after = dict(name='div', attrs={'class': ['tags']})
- remove_tags = [dict(name='div', attrs={'class': ['h']}),
+ remove_tags = [dict(name='div', attrs={'class': ['h']}),
dict(name='tfoot')]
keep_only_tags = [dict(name='table', attrs={'class': 'article-box'})]
diff --git a/recipes/nikkei_news.recipe b/recipes/nikkei_news.recipe
index afc88e86ec..7c4f02cfb6 100644
--- a/recipes/nikkei_news.recipe
+++ b/recipes/nikkei_news.recipe
@@ -80,7 +80,7 @@ class NikkeiNet_paper_subscription(BasicNewsRecipe):
sections = soup.findAll(attrs={'class': re.compile(r'.*cmn-article_title.*')})
for sect in sections:
- sect_title = sect.find(attrs={'class' : re.compile(r'.*cmnc-((large)|(middle)|(small)).*')})
+ sect_title = sect.find(attrs={'class': re.compile(r'.*cmnc-((large)|(middle)|(small)).*')})
if sect_title is None:
continue
sect_title = sect_title.contents[0]
diff --git a/recipes/novinky.cz.recipe b/recipes/novinky.cz.recipe
index c30dc259d7..e131e798e8 100644
--- a/recipes/novinky.cz.recipe
+++ b/recipes/novinky.cz.recipe
@@ -24,12 +24,12 @@ class novinkyRecipe(BasicNewsRecipe):
remove_javascript = True
no_stylesheets = True
- remove_tags = [dict(name='div', attrs={'id': ['pictureInnerBox']}),
- dict(name='div', attrs={'id': ['discussionEntry']}),
- dict(name='span', attrs={
+ remove_tags = [dict(name='div', attrs={'id': ['pictureInnerBox']}),
+ dict(name='div', attrs={'id': ['discussionEntry']}),
+ dict(name='span', attrs={
'id': ['mynews-hits', 'mynews-author']}),
- dict(name='div', attrs={'class': ['related']}),
- dict(name='div', attrs={'id': ['multimediaInfo']})]
+ dict(name='div', attrs={'class': ['related']}),
+ dict(name='div', attrs={'id': ['multimediaInfo']})]
remove_tags_before = dict(name='div', attrs={'class': ['articleHeader']})
remove_tags_after = dict(name='div', attrs={'class': 'related'})
diff --git a/recipes/nu.recipe b/recipes/nu.recipe
index 80dd9a19f0..a40d392304 100644
--- a/recipes/nu.recipe
+++ b/recipes/nu.recipe
@@ -49,4 +49,4 @@ class Nu(BasicNewsRecipe):
(u'Podcast Algemeen nieuws', u'http://www.nu.nl/podcast.php')]
def get_article_url(self, article):
- return article.get('guid', None)
+ return article.get('guid', None)
diff --git a/recipes/old_games.recipe b/recipes/old_games.recipe
index a7e3655e1f..508eba0a85 100644
--- a/recipes/old_games.recipe
+++ b/recipes/old_games.recipe
@@ -24,7 +24,7 @@ class OGRU(BasicNewsRecipe):
remove_attributes = ['style']
- remove_tags = [
+ remove_tags = [
dict(name='p', attrs={'id': 'pageDescription'}),
dict(name='div', attrs={'class': 'pageNavLinkGroup'}),
dict(name='div', attrs={'class': 'tagBlock TagContainer'}),
diff --git a/recipes/ottawa_citizen.recipe b/recipes/ottawa_citizen.recipe
index 68342217d5..9db1eb7c04 100644
--- a/recipes/ottawa_citizen.recipe
+++ b/recipes/ottawa_citizen.recipe
@@ -214,7 +214,7 @@ class CanWestPaper(BasicNewsRecipe):
divtags = soup.findAll('div', attrs={'id': ''})
if divtags:
for div in divtags:
- del (div['id'])
+ del div['id']
pgall = soup.find('div', attrs={'id': 'storyphoto'})
if pgall is not None: # photo gallery perhaps
diff --git a/recipes/pagina12.recipe b/recipes/pagina12.recipe
index 0bff247ba1..3276fa4c7f 100644
--- a/recipes/pagina12.recipe
+++ b/recipes/pagina12.recipe
@@ -76,22 +76,22 @@ class Pagina12(BasicNewsRecipe):
return br
feeds = [
- (u'Diario de hoy' , u'https://www.pagina12.com.ar/rss/edicion-impresa'),
- (u'Espectaculos' , u'https://www.pagina12.com.ar/rss/suplementos/cultura-y-espectaculos/notas'),
- (u'Radar' , u'https://www.pagina12.com.ar/rss/suplementos/radar/notas'),
- (u'Radar libros' , u'https://www.pagina12.com.ar/rss/suplementos/radar-libros/notas'),
- (u'Cash' , u'https://www.pagina12.com.ar/rss/suplementos/cash/notas'),
- (u'NO' , u'https://www.pagina12.com.ar/rss/suplementos/no/notas'),
- (u'Las 12' , u'https://www.pagina12.com.ar/rss/suplementos/las12/notas'),
- (u'Soy' , u'https://www.pagina12.com.ar/rss/suplementos/soy/notas'),
- (u'M2' , u'https://www.pagina12.com.ar/rss/suplementos/m2/notas'),
- (u'Rosario 12' , u'https://www.pagina12.com.ar/rss/suplementos/rosario12/notas')
+ (u'Diario de hoy', u'https://www.pagina12.com.ar/rss/edicion-impresa'),
+ (u'Espectaculos', u'https://www.pagina12.com.ar/rss/suplementos/cultura-y-espectaculos/notas'),
+ (u'Radar', u'https://www.pagina12.com.ar/rss/suplementos/radar/notas'),
+ (u'Radar libros', u'https://www.pagina12.com.ar/rss/suplementos/radar-libros/notas'),
+ (u'Cash', u'https://www.pagina12.com.ar/rss/suplementos/cash/notas'),
+ (u'NO', u'https://www.pagina12.com.ar/rss/suplementos/no/notas'),
+ (u'Las 12', u'https://www.pagina12.com.ar/rss/suplementos/las12/notas'),
+ (u'Soy', u'https://www.pagina12.com.ar/rss/suplementos/soy/notas'),
+ (u'M2', u'https://www.pagina12.com.ar/rss/suplementos/m2/notas'),
+ (u'Rosario 12', u'https://www.pagina12.com.ar/rss/suplementos/rosario12/notas')
]
def get_cover_url(self):
lurl = strftime('https://www.pagina12.com.ar/edicion-impresa/%d-%m-%Y')
soup = self.index_to_soup(lurl)
- mydiv = soup.find('div', {'class' : lambda x: x and 'printed-edition-cover' in x.split()})
+ mydiv = soup.find('div', {'class': lambda x: x and 'printed-edition-cover' in x.split()})
if mydiv:
for image in mydiv.findAll('img'):
if image['src'].startswith('https://images.pagina12.com.ar/styles/width700/public/'):
diff --git a/recipes/paperpaper.recipe b/recipes/paperpaper.recipe
index 73d5c7daed..5bb6705753 100644
--- a/recipes/paperpaper.recipe
+++ b/recipes/paperpaper.recipe
@@ -24,7 +24,7 @@ class PaperPaper(BasicNewsRecipe):
remove_tags_after = dict(name='article')
- remove_tags = [
+ remove_tags = [
dict(name='div', attrs={'class': 'bottom-block '}),
dict(name='div', attrs={'class': 'bottom-block news'})
]
diff --git a/recipes/parlamentni_listy.recipe b/recipes/parlamentni_listy.recipe
index 27bd17b4e3..adcfc3b259 100644
--- a/recipes/parlamentni_listy.recipe
+++ b/recipes/parlamentni_listy.recipe
@@ -32,4 +32,4 @@ class plRecipe(BasicNewsRecipe):
preprocess_regexps = [(re.compile(r'<(span|strong)[^>]*>\s*Ptejte se politik.*',
re.DOTALL | re.IGNORECASE), lambda match: '