forked from kovidgoyal/calibre
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatlantic_com.recipe
More file actions
32 lines (28 loc) · 1.49 KB
/
Copy pathatlantic_com.recipe
File metadata and controls
32 lines (28 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1421956712(BasicNewsRecipe):
title = 'TheAtlantic.com'
__author__ = 'ebrandon'
language = 'en'
description = 'News and editorial about politics, culture, entertainment, tech, etc. Contains many articles not seen in The Atlantic magazine'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = True
ignore_duplicate_articles = {'title', 'url'}
def print_version(self, url):
return url.replace('/archive/', '/print/')
feeds = [
('Politics', 'http://feeds.feedburner.com/AtlanticPoliticsChannel'),
('International', 'http://feeds.feedburner.com/AtlanticInternational'),
('National', 'http://feeds.feedburner.com/AtlanticNational'),
('Science and Tech', 'http://feeds.feedburner.com/AtlanticScienceAndTechnology'),
('Business', 'http://feeds.feedburner.com/AtlanticBusinessChannel'),
('Health', 'http://feeds.feedburner.com/AtlanticFood'),
('Education', 'http://feeds.feedburner.com/AtlanticEducationChannel'),
('Entertainment', 'http://feeds.feedburner.com/AtlanticCulture'),
('Sexes', 'http://feeds.feedburner.com/AtlanticSexesChannel'),
('The Atlantic', 'http://feeds.feedburner.com/TheAtlantic'),
('The Atlatic Wire', 'http://feeds.feedburner.com/TheAtlanticWire'),
]