Update business_standard_print.recipe

magzter cover
This commit is contained in:
unkn0wn 2025-06-27 11:06:52 +05:30 committed by GitHub
parent 09fbad3427
commit 2bcb9cbd58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,10 +48,7 @@ class BusinessStandardPrint(BasicNewsRecipe):
soup = self.index_to_soup( soup = self.index_to_soup(
'https://www.magzter.com/IN/Business-Standard-Private-Ltd/Business-Standard/Newspaper/' 'https://www.magzter.com/IN/Business-Standard-Private-Ltd/Business-Standard/Newspaper/'
) )
for citem in soup.findAll( return soup.find('img', id=lambda s: s and 'mgd__lhd__cover' in s.split())['src']
'meta', content=lambda s: s and s.endswith('view/3.jpg')
):
return citem['content']
def parse_index(self): def parse_index(self):
today = datetime.today().strftime('%d-%m-%Y') today = datetime.today().strftime('%d-%m-%Y')