home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / nationalreviewonline.recipe < prev    next >
Text File  |  2011-09-09  |  2KB  |  51 lines

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, Walt Anthony <workshop.northpole at gmail.com>'
  3. '''
  4. www.nationalreview.com
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class NRO(BasicNewsRecipe):
  10.     title          = u'National Review Online'
  11.     __author__            = 'Walt Anthony'
  12.     description           = "National Review is America's most widely read and influential magazine and web site for Republican/conservative news, commentary, and opinion."
  13.     publisher             = 'National Review, Inc.'
  14.     category              = 'news, politics, USA'
  15.     oldest_article = 3
  16.     max_articles_per_feed = 100
  17.     summary_length = 150
  18.     language              = 'en'
  19.     encoding              = 'utf-8'
  20.     use_embedded_content  = True
  21.     remove_javascript = True
  22.     
  23.  
  24.     conversion_options = {
  25.                           'comment'   : description
  26.                         , 'tags'      : category
  27.                         , 'publisher' : publisher
  28.                         , 'language'  : language
  29.                         }
  30.  
  31.     remove_tags = [
  32.                     dict(name=['embed','object','iframe']),
  33.  
  34.                   ]
  35.  
  36.     feeds = [
  37.     
  38.                (u'National Review', u'http://www.nationalreview.com/articles/feed'),
  39.                (u'The Corner', u'http://www.nationalreview.com/corner/feed'),
  40.                (u'The Agenda', u'http://www.nationalreview.com/agenda/feed'),
  41.                (u'Bench Memos', u'http://www.nationalreview.com/bench-memos/feed'),
  42.                (u'Campaign Spot', u'http://www.nationalreview.com/campaign-spot/feed'),
  43.                (u'Battle 10', u'http://www.nationalreview.com/battle10/feed'),
  44.                (u'Critical Care', u'http://www.nationalreview.com/critical-condition/feed'),
  45.                (u"Kudlow's Money Politic$", u'http://www.nationalreview.com/kudlows-money-politics/feed'),
  46.                (u'Media Blog', u'http://www.nationalreview.com/media-blog/feed'),
  47.                (u'Exchequer', u'http://www.nationalreview.com/exchequer/feed'),
  48.                (u'Phi Beta Cons', u'http://www.nationalreview.com/phi-beta-cons/feed'),
  49.                (u'Planet Gore', u'http://www.nationalreview.com/planet-gore/feed')
  50.     
  51.             ]