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

  1. #!/usr/bin/env  python
  2. __license__   = 'GPL v3'
  3. '''
  4. '''
  5. from calibre.web.feeds.recipes import BasicNewsRecipe
  6.  
  7.  
  8. class ReadersDigest(BasicNewsRecipe):
  9.  
  10.     title       = 'Readers Digest'
  11.     __author__  = 'BrianG'
  12.     language = 'en'
  13.     description = 'Readers Digest Feeds'
  14.     no_stylesheets        = True
  15.     use_embedded_content  = False
  16.     oldest_article = 60
  17.     max_articles_per_feed = 200
  18.  
  19.     language = 'en'
  20.     remove_javascript     = True
  21.  
  22.     extra_css      = ''' h1 {font-family:georgia,serif;color:#000000;}
  23.                         .mainHd{font-family:georgia,serif;color:#000000;}
  24.                          h2 {font-family:Arial,Sans-serif;}
  25.                         .name{font-family:Arial,Sans-serif; font-size:x-small;font-weight:bold; }
  26.                         .date{font-family:Arial,Sans-serif; font-size:x-small ;color:#999999;}
  27.                         .byline{font-family:Arial,Sans-serif; font-size:x-small ;}
  28.                         .photoBkt{ font-size:x-small ;}
  29.                         .vertPhoto{font-size:x-small ;}
  30.                         .credits{font-family:Arial,Sans-serif; font-size:x-small ;color:gray;}
  31.                         .credit{font-family:Arial,Sans-serif; font-size:x-small ;color:gray;}
  32.                         .artTxt{font-family:georgia,serif;}
  33.                         .caption{font-family:georgia,serif; font-size:x-small;color:#333333;}
  34.                         .credit{font-family:georgia,serif; font-size:x-small;color:#999999;}
  35.                         a:link{color:#CC0000;}
  36.                         .breadcrumb{font-family:Arial,Sans-serif;font-size:x-small;}
  37.                         '''
  38.  
  39.  
  40.     feeds = [
  41.             ('Food', 'http://www.rd.com/food/feed'),
  42.             ('Health', 'http://www.rd.com/health/feed'),
  43.             ('Home', 'http://www.rd.com/home/feed'),
  44.             ('Family', 'http://www.rd.com/family/feed'),
  45.             ('Money', 'http://www.rd.com/money/feed'),
  46.             ('Travel', 'http://www.rd.com/travel/feed'),
  47.         ]
  48.  
  49.     cover_url = 'http://www.rd.com/images/logo-main-rd.gif'
  50.  
  51.     keep_only_tags = dict(id='main-content')
  52.     remove_tags = [
  53.             {'class':['post-categories']},
  54.             ]
  55.  
  56.  
  57.