This commit is contained in:
unkn0w7n 2023-06-18 18:51:59 +05:30
parent cda12c4828
commit 1396035f9d

View File

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