calibre/recipes/atlantic_com.recipe
2016-10-07 15:19:29 +02:00

41 lines
2.3 KiB
Python

#!/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/')
# Feed are found here: http://www.theatlantic.com/follow-the-atlantic/#follow-rssfeeds
feeds = [
('The Atlantic', 'http://www.theatlantic.com/feed/all/'),
('Best of The Atlantic', 'http://www.theatlantic.com/feed/best-of/'),
('Politics | The Atlantic', 'http://www.theatlantic.com/feed/channel/politics/'),
('Business | The Atlantic', 'http://www.theatlantic.com/feed/channel/business/'),
('Culture | The Atlantic', 'http://www.theatlantic.com/feed/channel/entertainment/'),
('Global | The Atlantic', 'http://www.theatlantic.com/feed/channel/international/'),
('Technology | The Atlantic', 'http://www.theatlantic.com/feed/channel/technology/'),
('U.S. | The Atlantic', 'http://www.theatlantic.com/feed/channel/national/'),
('Health | The Atlantic', 'http://www.theatlantic.com/feed/channel/health/'),
('Video | The Atlantic', 'http://www.theatlantic.com/feed/channel/video/'),
('Sexes | The Atlantic', 'http://www.theatlantic.com/feed/channel/sexes/'),
('Education | The Atlantic', 'http://www.theatlantic.com/feed/channel/education/'),
('Science | The Atlantic', 'http://www.theatlantic.com/feed/channel/science/'),
('News | The Atlantic', 'http://www.theatlantic.com/feed/channel/news/'),
('Press Releases | The Atlantic', 'http://www.theatlantic.com/feed/channel/press-releases/'),
('Newsletters | The Atlantic', 'http://www.theatlantic.com/feed/channel/newsletters/'),
('The Atlantic Photo', 'http://feeds.feedburner.com/theatlantic/infocus'),
('Notes | The Atlantic', 'http://feeds.feedburner.com/TheAtlanticNotes'),
]