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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  3. '''
  4. oilprice.com
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class OilPrice(BasicNewsRecipe):
  10.     title                 = 'Oil Price'
  11.     __author__            = 'Darko Miletic'
  12.     description           = 'The nr. 1 source for Oil Price Information'
  13.     publisher             = 'oilprice.com'
  14.     category              = 'news, oil, politics, world, usa'
  15.     oldest_article        = 2
  16.     max_articles_per_feed = 200
  17.     no_stylesheets        = True
  18.     encoding              = 'cp1252'
  19.     use_embedded_content  = False
  20.     language              = 'en'
  21.     country               = 'US'
  22.     extra_css             = ' body{font-family: Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} '
  23.  
  24.     conversion_options = {
  25.                           'comment'   : description
  26.                         , 'tags'      : category
  27.                         , 'publisher' : publisher
  28.                         , 'language'  : language
  29.                         }
  30.     remove_tags       = [dict(name='div',attrs={'class':'banner'})]
  31.     keep_only_tags    = [dict(name='div',attrs={'id':'storyContent'})]
  32.     remove_tags_after = dict(attrs={'id':'KonaBody'})
  33.  
  34.     feeds = [(u'Articles', u'http://www.oilprice.com/rss.xml')]
  35.