From 298ffba0b771cfe1b94a7c7a22c38de546c5e98d Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Thu, 1 Feb 2024 18:05:28 +0530 Subject: [PATCH] ... --- recipes/livemint.recipe | 2 +- recipes/natgeomag.recipe | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/livemint.recipe b/recipes/livemint.recipe index ab82b0bc45..7147c72c78 100644 --- a/recipes/livemint.recipe +++ b/recipes/livemint.recipe @@ -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' ) ] diff --git a/recipes/natgeomag.recipe b/recipes/natgeomag.recipe index 4140a45777..fa866a2ec9 100644 --- a/recipes/natgeomag.recipe +++ b/recipes/natgeomag.recipe @@ -154,7 +154,9 @@ 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 = 'https://www.nationalgeographic.com' + photoart['href'] + 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'}): for article in soup.findAll('article'):