fix error

This commit is contained in:
unkn0w7n 2023-06-18 20:24:03 +05:30
parent 2ac8638b98
commit 65ff07bf20

View File

@ -99,7 +99,7 @@ class IndianExpress(BasicNewsRecipe):
div = soup.find('div', attrs={'class':['nation', 'o-opin']}) div = soup.find('div', attrs={'class':['nation', 'o-opin']})
for art in div.findAll(attrs={'class':['articles', 'o-opin-article']}): for art in div.findAll(attrs={'class':['articles', 'o-opin-article']}):
for a in art.findAll('a', href=True): for a in art.findAll('a', href=True):
if not a.find('img') and not ('/profile/' in a['href'] or '/agency/' in a['href']):: if not a.find('img') and not ('/profile/' in a['href'] or '/agency/' in a['href']):
url = a['href'] url = a['href']
title = self.tag_to_string(a) title = self.tag_to_string(a)
desc = '' desc = ''