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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, Walt Anthony <workshop.northpole at gmail.com>'
  3. '''
  4. www.americanthinker.com
  5. '''
  6. from calibre.web.feeds.news import BasicNewsRecipe
  7.  
  8. class AmericanThinker(BasicNewsRecipe):
  9.     title          = u'American Thinker'
  10.     description    = "American Thinker is a daily internet publication devoted to the thoughtful exploration of issues of importance to Americans."
  11.     __author__     = 'Walt Anthony'
  12.     publisher             = 'Thomas Lifson'
  13.     category              = 'news, politics, USA'
  14.     oldest_article        = 7 #days
  15.     max_articles_per_feed = 50
  16.     summary_length        = 150
  17.     language              = 'en'
  18.  
  19.     remove_javascript     = True
  20.     no_stylesheets        = True
  21.  
  22.  
  23.     conversion_options = {
  24.                           'comment'   : description
  25.                         , 'tags'      : category
  26.                         , 'publisher' : publisher
  27.                         , 'language'  : language
  28.                         , 'linearize_tables' : True
  29.                         }
  30.  
  31.     remove_tags  = [
  32.        dict(name=['table', 'iframe', 'embed', 'object'])
  33.     ]
  34.  
  35.     remove_tags_after   = dict(name='div', attrs={'class':'article_body'})
  36.  
  37.  
  38.     feeds = [(u'http://feeds.feedburner.com/americanthinker'),
  39.              (u'http://feeds.feedburner.com/AmericanThinkerBlog')
  40.             ]
  41.  
  42.     def print_version(self, url):
  43.         return 'http://www.americanthinker.com/printpage/?url=' + url
  44.