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

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2009, Wasabi <wasabi at tnxm.net>'
  5. '''
  6. tnxm.net
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class TNXM(BasicNewsRecipe):
  12.     title          = u'Thanh Nien Xa Me'
  13.     __author__     = 'Wasabi'
  14.     description    = 'Vietnam news and current affairs from TNXM - the finest Vietnamese bulletin board.'
  15.     no_stylesheets = True
  16.     language = 'vi'
  17.  
  18.     encoding = 'utf-8'
  19.     recursions = 0
  20.  
  21.     remove_tags    = [dict(name='div', attrs={'class':'footer'})]
  22.     extra_css      = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt  }' 
  23.  
  24.     feeds          = [
  25.                       ('Index', 'http://tnxm.net/external.php?type=RSS'), 
  26.                     ]
  27.  
  28.     def print_version(self, url):
  29.         return url.replace('showthread.php?', 'printthread.php?pp=160&')
  30.