mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
1f9c67ce02
commit
9ffcb91813
@ -27,7 +27,7 @@ class Haaretz_en(BasicNewsRecipe):
|
|||||||
language = 'en_IL'
|
language = 'en_IL'
|
||||||
needs_subscription = True
|
needs_subscription = True
|
||||||
remove_empty_feeds = True
|
remove_empty_feeds = True
|
||||||
ignore_duplicate_articles = {'url'}
|
ignore_duplicate_articles = {'url'}
|
||||||
publication_type = 'newspaper'
|
publication_type = 'newspaper'
|
||||||
PREFIX = 'https://www.haaretz.com'
|
PREFIX = 'https://www.haaretz.com'
|
||||||
LOGIN = 'https://services.haaretz.com/ms-sso/loginUrlEncoded'
|
LOGIN = 'https://services.haaretz.com/ms-sso/loginUrlEncoded'
|
||||||
@ -52,7 +52,8 @@ class Haaretz_en(BasicNewsRecipe):
|
|||||||
]
|
]
|
||||||
remove_attributes = ['width', 'height']
|
remove_attributes = ['width', 'height']
|
||||||
remove_tags = [
|
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 = [
|
feeds = [
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
|
||||||
class TheHealthy(BasicNewsRecipe):
|
class TheHealthy(BasicNewsRecipe):
|
||||||
title = 'The Healthy from Readers Digest'
|
title = 'The Healthy from Readers Digest'
|
||||||
language = 'en'
|
language = 'en'
|
||||||
@ -63,5 +64,5 @@ class TheHealthy(BasicNewsRecipe):
|
|||||||
('Health Care', 'https://www.thehealthy.com/healthcare/feed'),
|
('Health Care', 'https://www.thehealthy.com/healthcare/feed'),
|
||||||
('Home Remedies', 'https://www.thehealthy.com/home-remedies/feed'),
|
('Home Remedies', 'https://www.thehealthy.com/home-remedies/feed'),
|
||||||
('Oral and Dental Care', 'https://www.thehealthy.com/dental/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'),
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user