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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, NA'
  3. '''
  4. io9.com
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class i09(BasicNewsRecipe):
  10.     title                 = 'io9'
  11.     __author__            = 'NA'
  12.     description           = "io9, We Come From the Future."
  13.     publisher             = 'io9.com'
  14.     category              = 'news, science, education'
  15.     oldest_article        = 2
  16.     max_articles_per_feed = 100
  17.     no_stylesheets        = True
  18.     encoding              = 'utf-8'
  19.     use_embedded_content  = True
  20.     language              = 'en'
  21.     masthead_url          = 'http://cache.gawkerassets.com/assets/io9.com/img/logo.png'
  22.     extra_css             = '''
  23.     body{font-family: "Lucida Grande",Helvetica,Arial,sans-serif}
  24.     img{margin-bottom: 1em}
  25.     h1{font-family :Arial,Helvetica,sans-serif; font-size:large}
  26.                   '''
  27.     conversion_options = {
  28.                           'comment'   : description
  29.                         , 'tags'      : category
  30.                         , 'publisher' : publisher
  31.                         , 'language'  : language
  32.                         }
  33.  
  34.     feeds = [(u'Articles', u'http://feeds.gawker.com/io9/vip?format=xml')]
  35.  
  36.     remove_tags = [
  37.             {'class': 'feedflare'},
  38.     ]
  39.  
  40.     def preprocess_html(self, soup):
  41.         return self.adeify_images(soup)
  42.  
  43.