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

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
  5. '''
  6. www.hln.be
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class HLN_be(BasicNewsRecipe):
  12.     title                 = 'Het Laatste Nieuws'
  13.     __author__            = 'Darko Miletic'
  14.     description           = 'News from Belgium in Dutch'
  15.     publisher             = 'HLN'
  16.     category              = 'news, politics, Belgium'
  17.     oldest_article        = 2
  18.     max_articles_per_feed = 100
  19.     use_embedded_content  = False
  20.     no_stylesheets        = True
  21.     encoding              = 'utf-8'
  22.     language = 'nl_BE'
  23.  
  24.  
  25.     conversion_options = {
  26.                              'comments'    : description
  27.                             ,'tags'        : category
  28.                             ,'language'    : 'nl-NL'
  29.                             ,'publisher'   : publisher
  30.                          }
  31.  
  32.     remove_tags = [dict(name=['form','object','embed'])]
  33.  
  34.     keep_only_tags = [dict(name='div', attrs={'id':'art_box2'})]
  35.  
  36.     feeds = [(u'Articles', u'http://www.hln.be/rss.xml')]
  37.