Update The Hindu

This commit is contained in:
Kovid Goyal 2020-06-03 12:11:54 +05:30
parent 66fb0279e0
commit eb970aa3a6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -39,8 +39,7 @@ class TheHindu(BasicNewsRecipe):
div = soup.find('section', attrs={'id': 'section_'}) div = soup.find('section', attrs={'id': 'section_'})
if div is None: if div is None:
return ans return ans
ul = div.find('ul', attrs={'class': 'archive-list'}) for ul in div.findAll('ul', attrs={'class': 'archive-list'}):
if ul is not None:
for x in ul.findAll(['a']): for x in ul.findAll(['a']):
title = self.tag_to_string(x) title = self.tag_to_string(x)
url = x.get('href', False) url = x.get('href', False)