mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 12:24:00 +02:00
Update The Hindu
This commit is contained in:
parent
66fb0279e0
commit
eb970aa3a6
1 changed files with 1 additions and 2 deletions
|
|
@ -39,8 +39,7 @@ def articles_from_soup(self, soup):
|
|||
div = soup.find('section', attrs={'id': 'section_'})
|
||||
if div is None:
|
||||
return ans
|
||||
ul = div.find('ul', attrs={'class': 'archive-list'})
|
||||
if ul is not None:
|
||||
for ul in div.findAll('ul', attrs={'class': 'archive-list'}):
|
||||
for x in ul.findAll(['a']):
|
||||
title = self.tag_to_string(x)
|
||||
url = x.get('href', False)
|
||||
|
|
|
|||
Loading…
Reference in a new issue