calibre/recipes/nationalreviewonline.recipe

51 lines
2.1 KiB
Plaintext

__license__ = 'GPL v3'
__copyright__ = '2010, Walt Anthony <workshop.northpole at gmail.com>'
'''
www.nationalreview.com
'''
from calibre.web.feeds.news import BasicNewsRecipe
class NRO(BasicNewsRecipe):
title = u'National Review Online'
__author__ = 'Walt Anthony'
description = "National Review is America's most widely read and influential magazine and web site for Republican/conservative news, commentary, and opinion."
publisher = 'National Review, Inc.'
category = 'news, politics, USA'
oldest_article = 3
max_articles_per_feed = 100
summary_length = 150
language = 'en'
encoding = 'utf-8'
use_embedded_content = True
remove_javascript = True
conversion_options = {
'comment' : description
, 'tags' : category
, 'publisher' : publisher
, 'language' : language
}
remove_tags = [
dict(name=['embed','object','iframe']),
]
feeds = [
(u'National Review', u'http://www.nationalreview.com/articles/feed'),
(u'The Corner', u'http://www.nationalreview.com/corner/feed'),
(u'The Agenda', u'http://www.nationalreview.com/agenda/feed'),
(u'Bench Memos', u'http://www.nationalreview.com/bench-memos/feed'),
(u'Campaign Spot', u'http://www.nationalreview.com/campaign-spot/feed'),
(u'Battle 10', u'http://www.nationalreview.com/battle10/feed'),
(u'Critical Care', u'http://www.nationalreview.com/critical-condition/feed'),
(u"Kudlow's Money Politic$", u'http://www.nationalreview.com/kudlows-money-politics/feed'),
(u'Media Blog', u'http://www.nationalreview.com/media-blog/feed'),
(u'Exchequer', u'http://www.nationalreview.com/exchequer/feed'),
(u'Phi Beta Cons', u'http://www.nationalreview.com/phi-beta-cons/feed'),
(u'Planet Gore', u'http://www.nationalreview.com/planet-gore/feed')
]