Quote:
masthead_url = 'https://epaper.hindustantimes.com//Images/logo/logo.png'
|
Quote:
extra_css = '''
button { display: none; }
#container { font-style: italic; font-size: 75%; }
'''
|
add the container part. The 'about author' part is taking huge space
Quote:
keep_only_tags = [
classes(' fullStory dateTime storyBy storyDetails detail freemiumText paywall'),
]
|
remove spoiler part and add fullStory to classes.
Quote:
remove_tags = [
classes('htsWrapper shareArticle new__newsletter__signup signup__box subscribe freemium-card adMinHeight313'
' storyTopics embed_div shareIcons close-btn mainCoachmarks sharePopUp'),
|
add mainCoachmarks and sharePopUP to remove tags
If there are
Also read: links that are present within article text.. can we remap it to take it to that article (if its available) within the epub like it does in the economist.
Quote:
def canonicalize_internal_url(self, url, is_link=True):
if url.endswith('/print'):
url = url.rpartition('/')[0]
return BasicNewsRecipe.canonicalize_internal_url(self, url, is_link=is_link)
|
Above is from economist. Is this how we should do it?