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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, NA'
  3. '''
  4. jezebel.com
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class Jezebel(BasicNewsRecipe):
  10.     title                 = 'Jezebel'
  11.     __author__            = 'NA'
  12.     description           = "Jezebel, Celebrity, Sex, Fashion for Women. Without Airbrushing."
  13.     publisher             = 'jezebel.com'
  14.     category              = 'news, cars, spyshots'
  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/jezebel.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.     h2{font-family :Arial,Helvetica,sans-serif; font-size:x-small}
  27.                   '''
  28.     conversion_options = {
  29.                           'comment'   : description
  30.                         , 'tags'      : category
  31.                         , 'publisher' : publisher
  32.                         , 'language'  : language
  33.                         }
  34.  
  35.     feeds = [(u'Articles', u'http://feeds.gawker.com/jezebel/vip?format=xml')]
  36.  
  37.     remove_tags = [
  38.             {'class': 'feedflare'},
  39.     ]
  40.  
  41.  
  42.     def preprocess_html(self, soup):
  43.         return self.adeify_images(soup)
  44.  
  45.