home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_3921 < prev    next >
Encoding:
Text File  |  2010-01-23  |  2.1 KB  |  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/index.xml'),
  39.               (u'The Corner', u'http://corner.nationalreview.com/corner.xml'),
  40.               (u'The Agenda', u'http://agenda.nationalreview.com/agenda.xml'),
  41.               (u'Bench Memos', u'http://bench.nationalreview.com/bench.xml'),
  42.               (u'Campaign Spot', u'http://campaignspot.nationalreview.com/campaignspot.xml'),
  43.               (u'Critical Care', u'http://healthcare.nationalreview.com/healthcare.xml'),
  44.               (u'Doctor, Doctor', u'http://www.nationalreview.com/doctor/doctor.xml'),
  45.               (u"Kudlow's Money Politic$", u'http://kudlow.nationalreview.com/kudlow.xml'),
  46.               (u'Media Blog', u'http://media.nationalreview.com/media.xml'),
  47.               (u'Phi Beta Cons', u'http://phibetacons.nationalreview.com/phibetacons.xml'),
  48.               (u'Planet Gore', u'http://planetgore.nationalreview.com/planetgore.xml')
  49.  
  50.             ]
  51.