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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, Walt Anthony <workshop.northpole at gmail.com>'
  3. '''
  4. www.hotair.com
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class hotair(BasicNewsRecipe):
  10.     title          = u'Hot Air'
  11.     __author__            = 'Walt Anthony'
  12.     description           = "The world's first, full-service conservative Internet broadcast network"
  13.     publisher             = 'Hot Air'
  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  = False
  21.     remove_javascript = True
  22.  
  23.  
  24.     conversion_options = {
  25.                           'comment'   : description
  26.                         , 'tags'      : category
  27.                         , 'publisher' : publisher
  28.                         , 'language'  : language
  29.                         }
  30.  
  31.  
  32.  
  33.  
  34.     keep_only_tags = [dict(name='div', attrs={'id':'page-post'})]
  35.  
  36.     remove_tags  = [dict(name=['iframe', 'small', 'embed', 'object','link','script','form'])]
  37.  
  38.     feeds = [
  39.         ('Hot Air', 'http://feeds.feedburner.com/hotair/main'),
  40.         ('The Greenroom', 'http://feeds2.feedburner.com/hotair/greenroom')
  41.     ]
  42.