home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_3979 < prev    next >
Encoding:
Text File  |  2010-03-12  |  1.3 KB  |  37 lines

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
  3. '''
  4. www.europac.net
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class PeterSchiff(BasicNewsRecipe):
  10.     title                 = "Peter Schiff's Economic Commentary"
  11.     __author__            = 'Darko Miletic'
  12.     description           = 'Economic commentary'
  13.     publisher             = 'Euro Pacific capital'
  14.     category              = 'news, politics, economy, USA'
  15.     oldest_article        = 15
  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.     remove_empty_feeds    = True
  23.     extra_css             = ' body{font-family: Verdana,Times,serif } h1{text-align: left} img{margin-bottom: 0.4em}  '
  24.  
  25.     conversion_options = {
  26.                           'comment'   : description
  27.                         , 'tags'      : category
  28.                         , 'publisher' : publisher
  29.                         , 'language'  : language
  30.                         , 'linearize_tables' : True
  31.                         }
  32.  
  33.     keep_only_tags = [dict(name='tr',attrs={'style':'vertical-align: top;'})]
  34.  
  35.  
  36.     feeds = [(u'Articles', u'http://feeds.feedburner.com/PeterSchiffsEconomicCommentary')]
  37.