mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
d399a5d179
commit
3b4d2ef273
@ -6,7 +6,6 @@ from __future__ import absolute_import, division, print_function, unicode_litera
|
|||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
from calibre import browser
|
from calibre import browser
|
||||||
from calibre.ebooks.BeautifulSoup import Tag
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe, classes, prefixed_classes
|
from calibre.web.feeds.news import BasicNewsRecipe, classes, prefixed_classes
|
||||||
|
|
||||||
|
|
||||||
@ -119,7 +118,6 @@ class NewYorker(BasicNewsRecipe):
|
|||||||
for h2 in section.findAll(attrs={'class':lambda x: x and 'SectionTitleHed-' in x}):
|
for h2 in section.findAll(attrs={'class':lambda x: x and 'SectionTitleHed-' in x}):
|
||||||
secname = self.tag_to_string(h2)
|
secname = self.tag_to_string(h2)
|
||||||
self.log(secname)
|
self.log(secname)
|
||||||
articles = []
|
|
||||||
for a in section.findAll('a', href=True, attrs={'class':lambda x: x and 'summary-item__hed-link' in x}):
|
for a in section.findAll('a', href=True, attrs={'class':lambda x: x and 'summary-item__hed-link' in x}):
|
||||||
section = secname
|
section = secname
|
||||||
url = absurl(a['href'])
|
url = absurl(a['href'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user