From 479f9fe9ee20c9b313707f5b39342622b4fd783e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 30 Jan 2023 14:13:31 +0530 Subject: [PATCH] Update LiveMint --- recipes/livemint.recipe | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/recipes/livemint.recipe b/recipes/livemint.recipe index 520d9bd54b..72b7a7b307 100644 --- a/recipes/livemint.recipe +++ b/recipes/livemint.recipe @@ -23,6 +23,7 @@ class LiveMint(BasicNewsRecipe): masthead_url = 'https://images.livemint.com/static/livemint-logo-v1.svg' remove_empty_feeds = True + resolve_internal_links = True def get_cover_url(self): soup = self.index_to_soup( @@ -61,21 +62,23 @@ class LiveMint(BasicNewsRecipe): else: extra_css = ''' + img {display:block; margin:0 auto;} #img-cap {font-size:small; text-align:center;} #auth-info {font-size:small; text-align:center;} .highlights {font-style:italic;} - .summary{font-style:italic; color:#404040;} + .summary{font-style:italic; color:#202020;} + .author-widget{font-size:small; font-style:italic; color:#404040; text-align:center;} + em, blockquote {color:#202020;} ''' keep_only_tags = [ - dict(name='h1'), - dict(name='figure', attrs={'data-vars-mediatype':'image'}), - classes('articleInfo FirstEle summary highlights paywall'), + dict(name='article'), + classes('contentSec') ] remove_tags = [ classes( 'trendingSimilarHeight moreNews mobAppDownload label msgError msgOk taboolaHeight' - ' socialHolder imgbig disclamerText disqus-comment-count' + ' socialHolder imgbig disclamerText disqus-comment-count openinApp2 lastAdSlot' ) ]