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

  1. #created by sexymax15 ....sexymax15@gmail.com
  2. #christian post recipe
  3. from calibre.web.feeds.news import BasicNewsRecipe
  4.  
  5. class ChristianPost(BasicNewsRecipe):
  6.  
  7.     title = 'The Christian Post'
  8.     __author__ = 'sexymax15'
  9.     description = 'Homepage'
  10.     language = 'en'
  11.     no_stylesheets = True
  12.     use_embedded_content    = False
  13.     oldest_article    = 30
  14.     max_articles_per_feed = 15
  15.  
  16.     remove_empty_feeds = True
  17.     no_stylesheets = True
  18.     remove_javascript = True
  19.  
  20.     extra_css = '''
  21.               h1 {color:#008852;font-family:Arial,Helvetica,sans-serif; font-size:20px; font-size-adjust:none; font-stretch:normal; font-style:normal; font-variant:normal; font-weight:bold; line-height:18px;}
  22.               h2 {color:#4D4D4D;font-family:Arial,Helvetica,sans-serif; font-size:16px; font-size-adjust:none; font-stretch:normal; font-style:normal; font-variant:normal; font-weight:bold; line-height:16px; } '''
  23.  
  24.  
  25.     feeds =  [
  26.              ('Homepage', 'http://www.christianpost.com/services/rss/feed/'),
  27.              ('Most Popular', 'http://www.christianpost.com/services/rss/feed/most-popular'),
  28.              ('Entertainment', 'http://www.christianpost.com/services/rss/feed/entertainment/'),
  29.              ('Politics', 'http://www.christianpost.com/services/rss/feed/politics/'),
  30.              ('Living', 'http://www.christianpost.com/services/rss/feed/living/'),
  31.              ('Business', 'http://www.christianpost.com/services/rss/feed/business/'),
  32.              ('Opinion', 'http://www.christianpost.com/services/rss/feed/opinion/')
  33.              ]
  34.  
  35.     def print_version(self, url):
  36.         return url +'print.html'
  37.  
  38.