From 74a4e630fcecde5c9686e595f50985435b5367cc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 23 Jan 2010 08:05:30 -0700 Subject: [PATCH] New recipe for The National Review Online by Walt Anthony --- .../images/news/nationalreviewonline.png | Bin 0 -> 815 bytes resources/recipes/nationalreviewonline.recipe | 50 ++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 resources/images/news/nationalreviewonline.png create mode 100644 resources/recipes/nationalreviewonline.recipe diff --git a/resources/images/news/nationalreviewonline.png b/resources/images/news/nationalreviewonline.png new file mode 100644 index 0000000000000000000000000000000000000000..9070b3c71dc31f50a3f98a029524a94bc682185a GIT binary patch literal 815 zcmV+~1JL}5P)kzTH$m6|3@fdMfV-aJex4)-x z{`?1d9vI&}$h|x7ByJ{rdwQ8H&C#Bo3Wr~qp|8J}xY=aKJ!3>s#MrLwG#fEf`zF}6 zV+)g$<2*h!N|q%&@z@Zrzchx`fTl@Gsc4yb=4ndh5^)^UZf7(bIhQV9W8wM=)oL$8 z!&N^0{1jiz{>JflzGrl6iM@L&XrbUackTx+{CJ6H56w_6mk0#bl9cJ`X&Q0H`Jb-R zN?^5-P>d|~C+w?jl*Lgmy%2;=aq8wrMUe z-|CD}<1v{e69Z8KWDB6GQ|N?Q}p@fzX)+keooy z;O6c{egBQ;J`m)8_=;>qI{X7F+`bioCnxzxLI`1Qo@2*PoP7S~twxu3KB%*Zc3kIg tyV0n}s6~yHZQF+H2cH^vcj^H?{u?wQ4K}ND5sCl+002ovPDHLkV1hdQbY}nn literal 0 HcmV?d00001 diff --git a/resources/recipes/nationalreviewonline.recipe b/resources/recipes/nationalreviewonline.recipe new file mode 100644 index 0000000000..5f002019d9 --- /dev/null +++ b/resources/recipes/nationalreviewonline.recipe @@ -0,0 +1,50 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, Walt Anthony ' +''' +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/index.xml'), + (u'The Corner', u'http://corner.nationalreview.com/corner.xml'), + (u'The Agenda', u'http://agenda.nationalreview.com/agenda.xml'), + (u'Bench Memos', u'http://bench.nationalreview.com/bench.xml'), + (u'Campaign Spot', u'http://campaignspot.nationalreview.com/campaignspot.xml'), + (u'Critical Care', u'http://healthcare.nationalreview.com/healthcare.xml'), + (u'Doctor, Doctor', u'http://www.nationalreview.com/doctor/doctor.xml'), + (u"Kudlow's Money Politic$", u'http://kudlow.nationalreview.com/kudlow.xml'), + (u'Media Blog', u'http://media.nationalreview.com/media.xml'), + (u'Phi Beta Cons', u'http://phibetacons.nationalreview.com/phibetacons.xml'), + (u'Planet Gore', u'http://planetgore.nationalreview.com/planetgore.xml') + + ]