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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, NA'
  3. '''
  4. deadspin.com
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class Deadspin(BasicNewsRecipe):
  10.     title                 = 'Deadspin'
  11.     __author__            = 'NA'
  12.     description           = "Deadspin, Sports News without Access, Favor, or Discretion."
  13.     publisher             = 'deadspin.com'
  14.     category              = 'news, sports, meltdowns'
  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/deadspin.com/img/logo.png'
  22.     conversion_options = {
  23.                           'comment'   : description
  24.                         , 'tags'      : category
  25.                         , 'publisher' : publisher
  26.                         , 'language'  : language
  27.                         }
  28.  
  29.     remove_tags = [
  30.             {'class': 'feedflare'},
  31.     ]
  32.  
  33.     feeds = [(u'Articles', u'http://feeds.gawker.com/deadspin/vip?format=xml')]
  34.  
  35.     def preprocess_html(self, soup):
  36.         return self.adeify_images(soup)
  37.  
  38.