mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
4a226f77c7
commit
f02be2d913
@ -3,9 +3,10 @@
|
|||||||
import json
|
import json
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
|
||||||
from html5_parser import parse
|
from html5_parser import parse
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
|
||||||
class BusinessStandardPrint(BasicNewsRecipe):
|
class BusinessStandardPrint(BasicNewsRecipe):
|
||||||
title = 'Business Standard Print Edition'
|
title = 'Business Standard Print Edition'
|
||||||
@ -116,9 +117,9 @@ class BusinessStandardPrint(BasicNewsRecipe):
|
|||||||
date = (datetime.fromtimestamp(int(data['publishDate']))).strftime('%b %d, %Y | %I:%M %p')
|
date = (datetime.fromtimestamp(int(data['publishDate']))).strftime('%b %d, %Y | %I:%M %p')
|
||||||
|
|
||||||
authors = []
|
authors = []
|
||||||
if 'articleMappedMultipleAuthors' in data:
|
if 'articleMappedMultipleAuthors' in data:
|
||||||
for aut in data['articleMappedMultipleAuthors']:
|
for aut in data['articleMappedMultipleAuthors']:
|
||||||
authors.append(data['articleMappedMultipleAuthors'][str(aut)])
|
authors.append(data['articleMappedMultipleAuthors'][str(aut)])
|
||||||
auth = '<div><p class="auth">' + ', '.join(authors) + ' | ' + data['placeName'] + ' | ' + date + '</p></div>'
|
auth = '<div><p class="auth">' + ', '.join(authors) + ' | ' + data['placeName'] + ' | ' + date + '</p></div>'
|
||||||
|
|
||||||
if 'featuredImageObj' in data:
|
if 'featuredImageObj' in data:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user