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

  1.  
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  4. '''
  5. futurismic.com
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class Futurismic(BasicNewsRecipe):
  11.     title                 = 'Futurismic'
  12.     __author__            = 'Darko Miletic'
  13.     description           = 'Near-future science fiction and fact since 2001'
  14.     oldest_article        = 15
  15.     max_articles_per_feed = 100
  16.     language              = 'en'
  17.     encoding              = 'utf-8'
  18.     no_stylesheets        = True
  19.     use_embedded_content  = False
  20.     publication_type      = 'blog'
  21.     extra_css             = ' body{font-family: Arial,Verdana,sans-serif} '
  22.  
  23.     conversion_options = {
  24.                           'comment'  : description
  25.                         , 'tags'     : 'blog, sf'
  26.                         , 'publisher': 'Futurismic'
  27.                         , 'language' : language
  28.                         }
  29.  
  30.     remove_attributes = ['width','height']
  31.     keep_only_tags    = [dict(attrs={'class':['post','commentlist']})]
  32.     remove_tags       = [dict(attrs={'class':['sociable','feedback','tagwords']})]
  33.     feeds = [(u'Posts', u'http://feeds2.feedburner.com/futurismic_feed')]
  34.  
  35.     def preprocess_html(self, soup):
  36.         return self.adeify_images(soup)
  37.  
  38.  
  39.