From eb970aa3a6fc13e3f204f32ac158db4a289f80f7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 3 Jun 2020 12:11:54 +0530 Subject: [PATCH] Update The Hindu --- recipes/hindu.recipe | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/hindu.recipe b/recipes/hindu.recipe index 61fa5781eb..b29b8f17ce 100644 --- a/recipes/hindu.recipe +++ b/recipes/hindu.recipe @@ -39,8 +39,7 @@ class TheHindu(BasicNewsRecipe): 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)