mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Update livemint.recipe
This commit is contained in:
parent
65fd5b915a
commit
2ea7c1d6c3
@ -138,6 +138,9 @@ class LiveMint(BasicNewsRecipe):
|
|||||||
return raw
|
return raw
|
||||||
|
|
||||||
def preprocess_html(self, soup):
|
def preprocess_html(self, soup):
|
||||||
|
for embed in soup.findAll('div', attrs={'class':'embed'}):
|
||||||
|
if nos := embed.find('noscript'):
|
||||||
|
nos.name = 'span'
|
||||||
for span in soup.findAll('figcaption'):
|
for span in soup.findAll('figcaption'):
|
||||||
span['id'] = 'img-cap'
|
span['id'] = 'img-cap'
|
||||||
for auth in soup.findAll('span', attrs={'class':lambda x: x and 'articleInfo' in x.split()}):
|
for auth in soup.findAll('span', attrs={'class':lambda x: x and 'articleInfo' in x.split()}):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user