From 46f9b1ebd759fa5fb1cae70d299f096f09dc29f5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 13 Feb 2022 12:07:58 +0530 Subject: [PATCH] Update The Hindu --- recipes/hindu.recipe | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/hindu.recipe b/recipes/hindu.recipe index 7203e918fc..e478ae3d2e 100644 --- a/recipes/hindu.recipe +++ b/recipes/hindu.recipe @@ -55,6 +55,8 @@ class TheHindu(BasicNewsRecipe): source.extract() except Exception: pass + for img in soup.findAll(attrs={'data-original': True}): + img['src'] = img['data-original'] # Place intro beneath the title, skip duplicates try: soup.h1.insert_after(soup.find('h2', attrs={'class': 'intro'})) @@ -77,7 +79,7 @@ class TheHindu(BasicNewsRecipe): def articles_from_soup(self, soup): ans = [] - div = soup.find('section', attrs={'id': 'section_'}) + div = soup.find('section', attrs={'id': 'section_1'}) if div is None: return ans for ul in div.findAll('ul', attrs={'class': 'archive-list'}):