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

  1. #!/usr/bin/env  python
  2. __license__   = 'GPL v3'
  3. __copyright__ = '2011, Starson17'
  4. __docformat__ = 'restructuredtext en'
  5.  
  6. from calibre.web.feeds.news import BasicNewsRecipe
  7.  
  8. class Freakonomics(BasicNewsRecipe):
  9.     title = 'Freakonomics Blog'
  10.     description = 'The Hidden side of everything'
  11.     __author__          = 'Starson17'
  12.     __version__         = '1.02'
  13.     __date__            = '11 July 2011'
  14.     language = 'en'
  15.     cover_url           = 'http://ilkerugur.files.wordpress.com/2009/04/freakonomics.jpg'
  16.     use_embedded_content= False
  17.     no_stylesheets      = True
  18.     oldest_article      = 30
  19.     remove_javascript   = True
  20.     remove_empty_feeds    = True
  21.     max_articles_per_feed = 50
  22.  
  23.     feeds = [(u'Freakonomics Blog', u'http://www.freakonomics.com/feed/')]
  24.     keep_only_tags = [dict(name='div', attrs={'id':['content']})]
  25.     remove_tags_after = [dict(name='div', attrs={'class':['simple_socialmedia']})]
  26.     remove_tags = [dict(name='div', attrs={'class':['simple_socialmedia','single-fb-share','wp-polls']})]
  27.     extra_css = '''
  28.                     h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
  29.                     h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
  30.                     p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
  31.                     body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
  32.         '''
  33.