Update livemint.recipe

This commit is contained in:
unkn0w7n 2023-07-16 23:59:17 +05:30
parent 65fd5b915a
commit 2ea7c1d6c3

View File

@ -138,6 +138,9 @@ class LiveMint(BasicNewsRecipe):
return raw
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'):
span['id'] = 'img-cap'
for auth in soup.findAll('span', attrs={'class':lambda x: x and 'articleInfo' in x.split()}):