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

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2010, Hiroshi Miura <miurahr@linux.com>'
  5. '''
  6. www.h-online.com
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class TheHeiseOnline(BasicNewsRecipe):
  12.     title          = u'The H'
  13.     __author__     = 'Hiroshi Miura'
  14.     oldest_article = 3
  15.     description    = 'In association with Heise Online'
  16.     publisher      = 'Heise Media UK Ltd.'
  17.     category       = 'news, technology, security, OSS, internet'
  18.     max_articles_per_feed = 100
  19.     language       = 'en'
  20.     encoding       = 'utf-8'
  21.     conversion_options = {
  22.                       'comment'  : description
  23.                      ,'tags'     : category
  24.                      ,'publisher': publisher
  25.                      ,'language' : language
  26.                      }
  27.     feeds          = [
  28.                       (u'The H News Feed', u'http://www.h-online.com/news/atom.xml')
  29.                      ]
  30.     cover_url = 'http://www.h-online.com/icons/logo_theH.gif'
  31.  
  32.     remove_tags = [
  33.                         dict(id="logo"),
  34.                         dict(id="footer")
  35.                         ]
  36.  
  37.     def print_version(self, url):
  38.         return url + '?view=print'
  39.  
  40.