Update Hindustan Times

This commit is contained in:
Kovid Goyal 2022-04-01 14:06:28 +05:30
parent 1dad1560e0
commit 62ccc857fe
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -12,24 +12,21 @@ class HindustanTimes(BasicNewsRecipe):
max_articles_per_feed = 50 max_articles_per_feed = 50
encoding = 'utf-8' encoding = 'utf-8'
use_embedded_content = False use_embedded_content = False
masthead_url = 'https://epaper.hindustantimes.com//Images/logo/logo.png'
no_stylesheets = True no_stylesheets = True
remove_attributes = ['style', 'height', 'width'] remove_attributes = ['style', 'height', 'width']
ignore_duplicate_articles = {'url'} ignore_duplicate_articles = {'url'}
extra_css = 'button { display: none; } ' extra_css = '.about-authors { font-size: smaller }'
keep_only_tags = [ keep_only_tags = [
dict(name='h1'), classes('fullStory dateTime storyBy storyDetails detail freemiumText paywall'),
dict(name='div', attrs={'class':'sortDec'}),
dict(name='picture'),
dict(name='figcaption'),
classes('dateTime storyBy storyDetails detail freemiumText paywall'),
] ]
remove_tags = [ remove_tags = [
classes('htsWrapper shareArticle new__newsletter__signup signup__box subscribe freemium-card adMinHeight313' classes('htsWrapper shareArticle new__newsletter__signup signup__box subscribe freemium-card adMinHeight313'
' storyTopics embed_div shareIcons close-btn'), ' storyTopics embed_div shareIcons close-btn mainCoachmarks sharePopUp'),
dict(name='div', attrs={'class':[]}), dict(name='div', attrs={'class':[]}),
dict(name='footer'), dict(name=['footer', 'button']),
] ]
feeds = [ feeds = [