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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2008-2011, Darko Miletic <darko.miletic at gmail.com>'
  3. '''
  4. standaard.be
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9. class DeStandaard(BasicNewsRecipe):
  10.     title                 = u'De Standaard'
  11.     __author__            = u'Darko Miletic'
  12.     language              = 'nl_BE'
  13.     description           = u'News from Belgium in Dutch'
  14.     oldest_article        = 7
  15.     max_articles_per_feed = 100
  16.     no_stylesheets        = True
  17.     use_embedded_content  = False
  18.     encoding              = 'utf-8'
  19.     masthead_url          = 'http://www.standaard.be/extra/css/images/masthead/logo_340x45.png'
  20.     publication_type      = 'newspaper'
  21.     
  22.     keep_only_tags    = [dict(name='div' , attrs={'id':['intro','continued']})]
  23.  
  24.     feeds          = [(u'De Standaard Online', u'http://feeds.feedburner.com/dso-front')]
  25.  
  26.  
  27.     def get_article_url(self, article):
  28.         return article.get('guid',  None)
  29.  
  30.     def print_version(self, url):
  31.         return url.replace('/artikel/detail.aspx?','/Artikel/PrintArtikel.aspx?')
  32.