From 6092dcda653b7cd539b4a9e546faa25520d8ddb5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 19 Jun 2025 16:54:23 +0530 Subject: [PATCH] pep8 --- recipes/financial_times.recipe | 4 ++-- recipes/wsj.recipe | 6 +++--- recipes/wsj_mag.recipe | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/recipes/financial_times.recipe b/recipes/financial_times.recipe index 89894093df..9b075315cb 100644 --- a/recipes/financial_times.recipe +++ b/recipes/financial_times.recipe @@ -64,11 +64,11 @@ class ft(BasicNewsRecipe): ] def get_cover_url(self): - url = f"https://www.tomorrowspapers.co.uk/financial-times-front-page-{date.today():%Y-%m-%d}/" + url = f'https://www.tomorrowspapers.co.uk/financial-times-front-page-{date.today():%Y-%m-%d}/' try: soup = self.index_to_soup(url) except Exception: - return f"https://img.kiosko.net/{date.today():%Y/%m/%d}/uk/ft_uk.750.jpg" + return f'https://img.kiosko.net/{date.today():%Y/%m/%d}/uk/ft_uk.750.jpg' img = soup.select_one('img.attachment-full[src*="Financial-Times"]') src = img['src'] return src diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index 0da280189d..d3938f6b26 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -6,8 +6,8 @@ from itertools import zip_longest from urllib.parse import quote, urlencode from calibre import browser -from calibre.ptempfile import PersistentTemporaryFile from calibre.ebooks.BeautifulSoup import BeautifulSoup +from calibre.ptempfile import PersistentTemporaryFile from calibre.web.feeds.news import BasicNewsRecipe, classes @@ -18,7 +18,7 @@ def get_article(article_id): 'User-Agent': 'okhttp/4.10.0', 'Accept-Encoding': 'gzip', 'Cache-Control': 'no-cache', - 'x-api-key': ('e''0''5''9''9''5''f''f''4''4''2''1''4''3''2''5''5''e''b''8''3''8''1''f''7''2''d''4''9''1''3''b''f''7''5''0''3''d''6''c'), # noqa: ISC001 + 'x-api-key': ('e''0''5''9''9''5''f''f''4''4''2''1''4''3''2''5''5''e''b''8''3''8''1''f''7''2''d''4''9''1''3''b''f''7''5''0''3''d''6''c'), # noqa: ISC001 } br = browser() req = Request( @@ -35,7 +35,7 @@ class WSJ(BasicNewsRecipe): description = ( 'The Print Edition of WSJ. The Wall Street Journal is your source ' 'for breaking news, analysis and insights from the U.S. and ' - 'around the world, the world\'s leading business and finance publication.' + "around the world, the world's leading business and finance publication." ) language = 'en_US' masthead_url = 'https://s.wsj.net/media/wsj_amp_masthead_lg.png' diff --git a/recipes/wsj_mag.recipe b/recipes/wsj_mag.recipe index b50464aceb..0337258914 100644 --- a/recipes/wsj_mag.recipe +++ b/recipes/wsj_mag.recipe @@ -5,8 +5,8 @@ from itertools import zip_longest from urllib.parse import quote, urlencode from calibre import browser -from calibre.ptempfile import PersistentTemporaryFile from calibre.ebooks.BeautifulSoup import BeautifulSoup +from calibre.ptempfile import PersistentTemporaryFile from calibre.web.feeds.news import BasicNewsRecipe, classes @@ -17,7 +17,7 @@ def get_article(article_id): 'User-Agent': 'okhttp/4.10.0', 'Accept-Encoding': 'gzip', 'Cache-Control': 'no-cache', - 'x-api-key': ('e''0''5''9''9''5''f''f''4''4''2''1''4''3''2''5''5''e''b''8''3''8''1''f''7''2''d''4''9''1''3''b''f''7''5''0''3''d''6''c'), # noqa: ISC001 + 'x-api-key': ('e''0''5''9''9''5''f''f''4''4''2''1''4''3''2''5''5''e''b''8''3''8''1''f''7''2''d''4''9''1''3''b''f''7''5''0''3''d''6''c'), # noqa: ISC001 } br = browser() req = Request(