diff --git a/recipes/livemint.recipe b/recipes/livemint.recipe index fd313ddb9d..9010d0f2b8 100644 --- a/recipes/livemint.recipe +++ b/recipes/livemint.recipe @@ -129,7 +129,7 @@ class LiveMint(BasicNewsRecipe): def preprocess_raw_html(self, raw, *a): # remove empty p tags - raw = re.sub(r'(
\s*)(<[^\/])', '\g<2>', re.sub(r'(
\s* \s*<\/p>)|(
\s*<\/p>)', '', raw)) + raw = re.sub(r'(
\s* \s*<\/p>)|(
\s*<\/p>)', '', raw) if '' in raw: m = re.search(r'type="application/ld\+json">[^<]+?"@type": "NewsArticle"', raw) raw1 = raw[m.start():]