From 2ea7c1d6c3b3043a6eb1ef2d286871eb0f6ff40c Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Sun, 16 Jul 2023 23:59:17 +0530 Subject: [PATCH] Update livemint.recipe --- recipes/livemint.recipe | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/livemint.recipe b/recipes/livemint.recipe index 75a6a5e514..3418fc249a 100644 --- a/recipes/livemint.recipe +++ b/recipes/livemint.recipe @@ -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()}):