This commit is contained in:
Kovid Goyal 2022-06-17 07:56:09 +05:30
parent 1f9c67ce02
commit 9ffcb91813
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class Haaretz_en(BasicNewsRecipe):
language = 'en_IL'
needs_subscription = True
remove_empty_feeds = True
ignore_duplicate_articles = {'url'}
ignore_duplicate_articles = {'url'}
publication_type = 'newspaper'
PREFIX = 'https://www.haaretz.com'
LOGIN = 'https://services.haaretz.com/ms-sso/loginUrlEncoded'
@ -52,7 +52,8 @@ class Haaretz_en(BasicNewsRecipe):
]
remove_attributes = ['width', 'height']
remove_tags = [
dict(name=['div', 'ul', 'button', 'svg'], attrs={'data-test': ['audioPlayer', 'newsletter', 'relatedArticles', 'tags', 'writerAlertButton', 'IconAlefLogo']})
dict(name=['div', 'ul', 'button', 'svg'], attrs={'data-test': [
'audioPlayer', 'newsletter', 'relatedArticles', 'tags', 'writerAlertButton', 'IconAlefLogo']})
]
feeds = [

View File

@ -11,6 +11,7 @@
from calibre.web.feeds.news import BasicNewsRecipe
class TheHealthy(BasicNewsRecipe):
title = 'The Healthy from Readers Digest'
language = 'en'
@ -63,5 +64,5 @@ class TheHealthy(BasicNewsRecipe):
('Health Care', 'https://www.thehealthy.com/healthcare/feed'),
('Home Remedies', 'https://www.thehealthy.com/home-remedies/feed'),
('Oral and Dental Care', 'https://www.thehealthy.com/dental/feed'),
('Self Care', 'https://www.thehealthy.com/mental-health/self-care/feed'),
('Self Care', 'https://www.thehealthy.com/mental-health/self-care/feed'),
]