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

  1.  
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  4. '''
  5. gizmodo.com
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class Gizmodo(BasicNewsRecipe):
  11.     title                 = 'Gizmodo'
  12.     __author__            = 'Darko Miletic'
  13.     description           = "Gizmodo, the gadget guide. So much in love with shiny new toys, it's unnatural."
  14.     publisher             = 'gizmodo.com'
  15.     category              = 'news, IT, Internet, gadgets'
  16.     oldest_article        = 2
  17.     max_articles_per_feed = 100
  18.     no_stylesheets        = True
  19.     encoding              = 'utf-8'
  20.     use_embedded_content  = True
  21.     language              = 'en'
  22.     masthead_url          = 'http://cache.gawkerassets.com/assets/gizmodo.com/img/logo.png'
  23.  
  24.     conversion_options = {
  25.                           'comment'   : description
  26.                         , 'tags'      : category
  27.                         , 'publisher' : publisher
  28.                         , 'language'  : language
  29.                         }
  30.  
  31.     feeds = [(u'Articles', u'http://feeds.gawker.com/gizmodo/vip?format=xml')]
  32.  
  33.     remove_tags = [
  34.             {'class': 'feedflare'},
  35.     ]
  36.  
  37.  
  38.     def preprocess_html(self, soup):
  39.         return self.adeify_images(soup)
  40.  
  41.