mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-28 01:32:34 -04:00
pep8
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -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/')
|
||||
|
||||
Reference in New Issue
Block a user