home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_4205 < prev    next >
Encoding:
Text File  |  2010-09-30  |  1.4 KB  |  40 lines

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
  5. '''
  6. www.nakedcapitalism.com
  7. '''
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10. class nakedcapitalism(BasicNewsRecipe):
  11.     title                 = 'Naked Capitalism'
  12.     __author__            = 'Darko Miletic'
  13.     description           = 'Commentary on current economic and financial news.'
  14.     publisher             = 'Aurora Advisors, Inc.'
  15.     category              = 'news, business, finances, money, banking'
  16.     oldest_article        = 7
  17.     max_articles_per_feed = 100
  18.     no_stylesheets        = True
  19.     use_embedded_content  = False
  20.     encoding              = 'utf-8'
  21.     language              = 'en'
  22.     extra_css             = ' #BlogTitle{font-size: x-large; font-weight: bold} #BlogDate{font-size: small} '
  23.  
  24.     conversion_options = {
  25.                           'comment'   : description
  26.                         , 'tags'      : category
  27.                         , 'publisher' : publisher
  28.                         , 'language'  : language
  29.                         }
  30.  
  31.     feeds = [(u'Articles', u'http://www.nakedcapitalism.com/feed')]
  32.  
  33.     keep_only_tags = [
  34.                         dict(name='h3', attrs={'class':'post-title entry-title'})
  35.                        ,dict(name='div', attrs={'class':'entry'})
  36.                      ]
  37.     
  38.     remove_tags = [dict(name=['object','link','base'])]
  39.                       
  40.