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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, Hiroshi Miura <miurahr@linux.com>'
  3. '''
  4. nationalgeographic.co.jp
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8. import re
  9.  
  10. class NationalGeoJp(BasicNewsRecipe):
  11.     title          = u'\u30ca\u30b7\u30e7\u30ca\u30eb\u30fb\u30b8\u30aa\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30cb\u30e5\u30fc\u30b9'
  12.     oldest_article = 7
  13.     max_articles_per_feed = 100
  14.     no_stylesheets = True
  15.  
  16.     feeds          = [(u'news', u'http://www.nationalgeographic.co.jp/news/rss.php')]
  17.  
  18.     def print_version(self, url):
  19.         return re.sub(r'news_article.php','news_printer_friendly.php', url)
  20.  
  21.