mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
3537db5a8c
commit
d47fa7a629
@ -1,7 +1,8 @@
|
||||
from calibre.web.feeds.news import BasicNewsRecipe, classes
|
||||
from datetime import date, datetime, timedelta
|
||||
from datetime import datetime, timedelta
|
||||
from calibre.utils.date import parse_date
|
||||
|
||||
|
||||
class IndianExpress(BasicNewsRecipe):
|
||||
title = u'Indian Express'
|
||||
language = 'en_IN'
|
||||
@ -86,7 +87,7 @@ class IndianExpress(BasicNewsRecipe):
|
||||
ans = []
|
||||
for div in soup.findAll(attrs={'class':['northeast-topbox', 'explained-section-grid']}):
|
||||
for a in div.findAll('a', href=True):
|
||||
if not a.find('img') and not '/section/' in a['href']:
|
||||
if not a.find('img') and '/section/' not in a['href']:
|
||||
url = a['href']
|
||||
title = self.tag_to_string(a)
|
||||
self.log('\t', title, '\n\t\t', url)
|
||||
@ -98,7 +99,7 @@ class IndianExpress(BasicNewsRecipe):
|
||||
div = soup.find('div', attrs={'class':['nation', 'o-opin']})
|
||||
for art in div.findAll(attrs={'class':['articles', 'o-opin-article']}):
|
||||
for a in art.findAll('a', href=True):
|
||||
if not a.find('img') and not '/profile/' in a['href']:
|
||||
if not a.find('img') and '/profile/' not in a['href']:
|
||||
url = a['href']
|
||||
title = self.tag_to_string(a)
|
||||
desc = ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user