This commit is contained in:
unkn0w7n 2024-02-01 18:05:28 +05:30
parent ad85cc9734
commit 298ffba0b7
2 changed files with 4 additions and 2 deletions

View File

@ -102,7 +102,7 @@ class LiveMint(BasicNewsRecipe):
dict(name=['meta', 'link', 'svg', 'button', 'iframe']),
classes(
'trendingSimilarHeight moreNews mobAppDownload label msgError msgOk taboolaHeight'
' socialHolder imgbig disclamerText disqus-comment-count openinApp2 lastAdSlot'
' socialHolder imgbig disclamerText disqus-comment-count openinApp2 lastAdSlot bs_logo'
' datePublish sepStory premiumSlider moreStory Joinus moreAbout milestone benefitText'
)
]

View File

@ -154,6 +154,8 @@ class NatGeo(BasicNewsRecipe):
if photoart := soup.find(attrs={'class':lambda x: x and 'BgImagePromo__Container__Text__Link' in x.split()}):
ans2 = []
title = self.tag_to_string(photoart)
url = photoart['href']
if url.startswith('/'):
url = 'https://www.nationalgeographic.com' + photoart['href']
ans2.append(('Photo Essay', [{'title': title, 'url': url}]))
for gird in soup.findAll(attrs={'class':'GridPromoTile'}):