mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
65f7c7e794
commit
f427882d67
@ -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/')
|
||||
|
Loading…
x
Reference in New Issue
Block a user