Update india_today.recipe

This commit is contained in:
unkn0w7n 2024-06-16 20:42:00 +05:30
parent 2bc1b4018c
commit 5015765789

View File

@ -62,13 +62,6 @@ class IndiaToday(BasicNewsRecipe):
section = None section = None
sections = {} sections = {}
date = soup.find(attrs={'class':lambda x: x and x.startswith('MagazineEdition_edition__date')})
edition = soup.find(attrs={'class':'prime__magazine'})
self.timefmt = '(' + self.tag_to_string(edition).strip() +') [' + self.tag_to_string(date).strip() + ']'
if p := edition.findNext('p'):
self.description = self.tag_to_string(p)
self.log('Downloading Issue: ', self.timefmt)
for tag in soup.findAll('div', attrs={'class': lambda x: x and 'NoCard_story__grid__' in x}): for tag in soup.findAll('div', attrs={'class': lambda x: x and 'NoCard_story__grid__' in x}):
sec = tag.find('div', attrs={'class': lambda x: x and 'NoCard_header__nav__' in x}) sec = tag.find('div', attrs={'class': lambda x: x and 'NoCard_header__nav__' in x})
section = self.tag_to_string(sec).strip() section = self.tag_to_string(sec).strip()