summaryrefslogtreecommitdiff
path: root/dotfiles/system/.config/calibre/custom_recipes/The New York Times_1000.recipe
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/system/.config/calibre/custom_recipes/The New York Times_1000.recipe')
-rw-r--r--dotfiles/system/.config/calibre/custom_recipes/The New York Times_1000.recipe18
1 files changed, 9 insertions, 9 deletions
diff --git a/dotfiles/system/.config/calibre/custom_recipes/The New York Times_1000.recipe b/dotfiles/system/.config/calibre/custom_recipes/The New York Times_1000.recipe
index 63df3fd..db3c40b 100644
--- a/dotfiles/system/.config/calibre/custom_recipes/The New York Times_1000.recipe
+++ b/dotfiles/system/.config/calibre/custom_recipes/The New York Times_1000.recipe
@@ -16,7 +16,7 @@ from calibre.utils.date import strptime
from calibre.web.feeds.news import BasicNewsRecipe
from polyglot.urllib import urlencode
-is_web_edition = False
+is_web_edition = True
use_wayback_machine = False
# This is an Apollo persisted query hash which you can get
@@ -33,12 +33,12 @@ web_sections = [
# ('New York', 'nyregion'),
('Business', 'business'),
('Technology', 'technology'),
- # ('Sports', 'sports'),
+ ('Sports', 'sports'),
('Science', 'science'),
('Health', 'health'),
('Opinion', 'opinion'),
# ('Arts', 'arts'),
- # ('Books', 'books'),
+ ('Books', 'books'),
# ('Movies', 'movies'),
# ('Music', 'arts/music'),
# ('Television', 'arts/television'),
@@ -46,10 +46,10 @@ web_sections = [
# ('Dining & Wine', 'food'),
# ('Fashion & Style', 'fashion'),
# ('Home & Garden', 'garden'),
- ('Travel', 'travel'),
- # ('Education', 'education'),
- # ('Multimedia', 'multimedia'),
- # ('Obituaries', 'obituaries'),
+ # ('Travel', 'travel'),
+ ('Education', 'education'),
+ # ('Multimedia', 'multimedia'),
+ ('Obituaries', 'obituaries'),
# ('Sunday Magazine', 'magazine')
]
# web_sections = [ ('Business', 'business'), ]
@@ -100,7 +100,7 @@ class NewYorkTimes(BasicNewsRecipe):
language = 'en_US'
ignore_duplicate_articles = {'title', 'url'}
no_stylesheets = True
- oldest_web_edition_article = 7 # days
+ oldest_web_edition_article = 1 # days
extra_css = '''
.byl, .time { font-size:small; color:#202020; }
@@ -365,4 +365,4 @@ if __name__ == '__main__':
parse_todays_page(data)
-calibre_most_common_ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36' \ No newline at end of file
+calibre_most_common_ua = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36'