home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_3762 < prev    next >
Encoding:
Text File  |  2010-05-23  |  1.1 KB  |  29 lines

  1. #!/usr/bin/env  python
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2009, Kovid Goyal kovid@kovidgoyal.net'
  4. __docformat__ = 'restructuredtext en'
  5.  
  6. from calibre.web.feeds.news import BasicNewsRecipe
  7.  
  8. class Freakonomics(BasicNewsRecipe):
  9.  
  10.     title = 'Freakonomics Blog'
  11.     description = 'The Hidden side of everything'
  12.     __author__ = 'Starson17'
  13.     language = 'en'
  14.     cover_url           = 'http://ilkerugur.files.wordpress.com/2009/04/freakonomics.jpg'
  15.  
  16.     feeds = [('Blog', 'http://feeds.feedburner.com/freakonomicsblog')]
  17.  
  18.     keep_only_tags     = [dict(name='div', attrs={'id':'header'}),
  19.                           dict(name='h1'),
  20.                           dict(name='h2'),
  21.                           dict(name='div', attrs={'class':'entry-content'}),
  22.                           ]
  23.     extra_css = '''
  24.                     h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
  25.                     h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
  26.                     p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
  27.                     body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
  28.         '''
  29.