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

  1. #!/usr/bin/env  python
  2.  
  3. __license__   = 'GPL v3'
  4. __copyright__ = '2009, Huan Komrade T <huantnh at gmail.com>'
  5. '''
  6. vnexpress.net
  7. '''
  8.  
  9. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class BBCVietnamese(BasicNewsRecipe):
  12.     title          = u'VnExpress'
  13.     __author__     = 'Huan Komrade T'
  14.     description    = 'Vietnam news and current affairs from the Food Production Technology Corporation'
  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://vnexpress.net/rss/gl/trang-chu.rss'), 
  26.                       ('Vietnam', 'http://vnexpress.net/rss/gl/xa-hoi.rss'),
  27.                       ('World News', 'http://vnexpress.net/rss/gl/the-gioi.rss'),
  28.                       ('Business', 'http://vnexpress.net/rss/gl/kinh-doanh.rss'),
  29.                       ('Culture', 'http://vnexpress.net/rss/gl/van-hoa.rss'),
  30.                       ('Sports', 'http://vnexpress.net/rss/gl/the-thao.rss'),
  31.                       ('Lifestyle', 'http://vnexpress.net/rss/gl/doi-song.rss'),
  32.                       ('From The Readers', 'http://vnexpress.net/rss/gl/ban-doc-viet.rss'),
  33.                       ('From The Readers - Sharing', 'http://vnexpress.net/rss/gl/ban-doc-viet-tam-su.rss'),
  34.                     ]
  35.  
  36.     def print_version(self, url):
  37.         return url + '?q=1'
  38.