mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
ad85cc9734
commit
298ffba0b7
@ -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'
|
||||
)
|
||||
]
|
||||
|
@ -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'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user