From 70384cfd5740ad6695d6aa9c74c7ab18e2bdea73 Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:04:25 +0530 Subject: [PATCH 1/9] Update hindustan.recipe magzter cover --- recipes/hindustan.recipe | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/hindustan.recipe b/recipes/hindustan.recipe index 262ef267f1..502f2e6f3a 100644 --- a/recipes/hindustan.recipe +++ b/recipes/hindustan.recipe @@ -44,5 +44,4 @@ class LiveHindustan(BasicNewsRecipe): def get_cover_url(self): soup = self.index_to_soup('https://www.magzter.com/IN/HT-Digital-Streams-Ltd./Hindustan-Times-Hindi-New-Delhi/Newspaper/') - for citem in soup.findAll('meta', content=lambda s: s and s.endswith('view/3.jpg')): - return citem['content'] + return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src'] From 687d9a98a5fd56554b480f533ca04da7c3d91864 Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:04:54 +0530 Subject: [PATCH 2/9] Update revista_muy.recipe magzter cover --- recipes/revista_muy.recipe | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/recipes/revista_muy.recipe b/recipes/revista_muy.recipe index b24397fd93..314bb92a8d 100644 --- a/recipes/revista_muy.recipe +++ b/recipes/revista_muy.recipe @@ -19,10 +19,7 @@ class RevistaMuyInteresante(BasicNewsRecipe): soup = self.index_to_soup( 'https://www.magzter.com/ES/Zinet-Media-Global/Muy-Interesante-Espa%C3%B1a/Science/1806044' ) - for citem in soup.findAll( - 'meta', content=lambda s: s and s.endswith('view/3.jpg') - ): - return citem['content'] + return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src'] extra_css = ''' .c-detail__bar, .c-detail__author, .c-detail__media__txt { font-size:small; } From 48340c2214e4ad3d52cfba26411c08b17ecd3ed6 Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:05:28 +0530 Subject: [PATCH 3/9] Update toi.recipe --- recipes/toi.recipe | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/toi.recipe b/recipes/toi.recipe index 31505f7eb2..8b539fbd9d 100644 --- a/recipes/toi.recipe +++ b/recipes/toi.recipe @@ -69,8 +69,7 @@ class TheEconomicTimes(BasicNewsRecipe): def get_cover_url(self): soup = self.index_to_soup('https://www.magzter.com/IN/Bennett-Coleman-and-Company-Limited/The-Times-of-India-Delhi/Newspaper/') - for citem in soup.findAll('meta', content=lambda s: s and s.endswith('view/3.jpg')): - return citem['content'] + return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src'] def get_article_url(self, article): rurl = article.get('guid', None) From cf9fb04dbfd5dc7dcba8c56643d01719bd67465a Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:05:54 +0530 Subject: [PATCH 4/9] Update the_week.recipe magzter cover --- recipes/the_week.recipe | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/recipes/the_week.recipe b/recipes/the_week.recipe index 0e898bd3a0..7aa96b4dac 100644 --- a/recipes/the_week.recipe +++ b/recipes/the_week.recipe @@ -44,10 +44,7 @@ class TheWeek(BasicNewsRecipe): soup = self.index_to_soup( 'https://www.magzter.com/IN/Malayala_Manorama/THE_WEEK/Business/' ) - for citem in soup.findAll( - 'meta', content=lambda s: s and s.endswith('view/3.jpg') - ): - return citem['content'] + return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src'] def parse_index(self): issue = 'https://www.theweek.in/theweek.html' From 09fbad342755c1b3976055b53232a8cfaba28c19 Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:06:27 +0530 Subject: [PATCH 5/9] Update hindustan_times.recipe magzter cover --- recipes/hindustan_times.recipe | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/hindustan_times.recipe b/recipes/hindustan_times.recipe index dd6168943e..6f9dfc2928 100644 --- a/recipes/hindustan_times.recipe +++ b/recipes/hindustan_times.recipe @@ -51,8 +51,7 @@ class HindustanTimes(BasicNewsRecipe): def get_cover_url(self): soup = self.index_to_soup('https://www.magzter.com/IN/HT-Digital-Streams-Ltd./Hindustan-Times-Delhi/Newspaper/') - for citem in soup.findAll('meta', content=lambda s: s and s.endswith('view/3.jpg')): - return citem['content'] + return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src'] def preprocess_html(self, soup): for img in soup.findAll('img', attrs={'data-src': True}): From 2bcb9cbd58479a7c53daf921e3b5ebd63a3668c3 Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:06:52 +0530 Subject: [PATCH 6/9] Update business_standard_print.recipe magzter cover --- recipes/business_standard_print.recipe | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/recipes/business_standard_print.recipe b/recipes/business_standard_print.recipe index 0a05f67f35..f5b31a8588 100644 --- a/recipes/business_standard_print.recipe +++ b/recipes/business_standard_print.recipe @@ -48,10 +48,7 @@ class BusinessStandardPrint(BasicNewsRecipe): soup = self.index_to_soup( 'https://www.magzter.com/IN/Business-Standard-Private-Ltd/Business-Standard/Newspaper/' ) - for citem in soup.findAll( - 'meta', content=lambda s: s and s.endswith('view/3.jpg') - ): - return citem['content'] + return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src'] def parse_index(self): today = datetime.today().strftime('%d-%m-%Y') From 265835d2809661018a80fd412950162843a41c2a Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:07:39 +0530 Subject: [PATCH 7/9] Update hindu_business_line.recipe magzter cover --- recipes/hindu_business_line.recipe | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/recipes/hindu_business_line.recipe b/recipes/hindu_business_line.recipe index c71e0312ad..592fb618d6 100644 --- a/recipes/hindu_business_line.recipe +++ b/recipes/hindu_business_line.recipe @@ -24,10 +24,7 @@ class BusinessLine(BasicNewsRecipe): soup = self.index_to_soup( 'https://www.magzter.com/IN/THG-publishing-pvt-ltd/The-Hindu-Business-Line/Newspaper/' ) - for citem in soup.findAll( - 'meta', content=lambda s: s and s.endswith('view/3.jpg') - ): - return citem['content'] + return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src'] keep_only_tags = [ classes( From 31a66647109d15250a7456665d1dba84e4d97d5f Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:08:15 +0530 Subject: [PATCH 8/9] Update muy_interesante_mexico.recipe --- recipes/muy_interesante_mexico.recipe | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/recipes/muy_interesante_mexico.recipe b/recipes/muy_interesante_mexico.recipe index 9aebe50a0e..32050060b7 100644 --- a/recipes/muy_interesante_mexico.recipe +++ b/recipes/muy_interesante_mexico.recipe @@ -22,10 +22,7 @@ class MuyInteresante(BasicNewsRecipe): soup = self.index_to_soup( 'https://www.magzter.com/ES/Zinet-Media-Global/Muy-Interesante-Espa%C3%B1a/Science/1806044' ) - for citem in soup.findAll( - 'meta', content=lambda s: s and s.endswith('view/3.jpg') - ): - return citem['content'] + return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src'] extra_css = ''' .c-detail__bar, .c-detail__author, .c-detail__media__txt { font-size:small; } From dcebd2df8f39962b61ecbc5d860ec9313d815410 Mon Sep 17 00:00:00 2001 From: unkn0wn <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Jun 2025 11:08:38 +0530 Subject: [PATCH 9/9] Update pc_world.recipe magzter cover --- recipes/pc_world.recipe | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/pc_world.recipe b/recipes/pc_world.recipe index 589745a526..2fe021ba5b 100644 --- a/recipes/pc_world.recipe +++ b/recipes/pc_world.recipe @@ -94,5 +94,4 @@ class pcWorld(BasicNewsRecipe): soup = self.index_to_soup( 'https://www.magzter.com/US/IDG-Consumer-and-SMB,-Inc./PCWorld/Computer-&-Mobile/' ) - for citem in soup.findAll('meta', content=lambda s: s and s.endswith('view/3.jpg')): - return citem['content'] + return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src']