From f427882d67db3781e0c650b3e01dcaa339ee26ff Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 20 Jun 2017 18:00:14 +0530 Subject: [PATCH] pep8 --- recipes/financial_times_uk.recipe | 4 +++- recipes/times_online.recipe | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/recipes/financial_times_uk.recipe b/recipes/financial_times_uk.recipe index 99f84fe4ac..490624bfd2 100644 --- a/recipes/financial_times_uk.recipe +++ b/recipes/financial_times_uk.recipe @@ -40,7 +40,9 @@ class FinancialTimes(BasicNewsRecipe): PREFIX = 'http://www.ft.com' keep_only_tags = [ - classes('article__header--wrapper article__time-byline article__body n-content-image barrier-grid__heading article__time-byline topper__headline topper__standfirst') + classes( + 'article__header--wrapper article__time-byline article__body' + 'n-content-image barrier-grid__heading article__time-byline topper__headline topper__standfirst') ] remove_tags = [ diff --git a/recipes/times_online.recipe b/recipes/times_online.recipe index 3d4dee2583..8670bca194 100644 --- a/recipes/times_online.recipe +++ b/recipes/times_online.recipe @@ -47,7 +47,8 @@ class TimesOnline(BasicNewsRecipe): def get_cover_url(self): from datetime import date - cover = 'http://img.kiosko.net/' + str(date.today().year) + '/' + date.today().strftime('%m') + '/' + date.today().strftime('%d') + '/uk/the_times.750.jpg' + cover = 'http://img.kiosko.net/' + str( + date.today().year) + '/' + date.today().strftime('%m') + '/' + date.today().strftime('%d') + '/uk/the_times.750.jpg' br = BasicNewsRecipe.get_browser(self) try: br.open(cover) @@ -60,7 +61,7 @@ class TimesOnline(BasicNewsRecipe): self.log("\nCover unavailable") cover = None return cover - + def get_browser(self): br = BasicNewsRecipe.get_browser(self) br.open('http://www.thetimes.co.uk/')