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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2010, Hiroshi Miura <miurahr@linux.com>'
  3. '''
  4. www.kahoku.co.jp
  5. '''
  6.  
  7. from calibre.web.feeds.news import BasicNewsRecipe
  8.  
  9.  
  10. class KahokuShinpoNews(BasicNewsRecipe):
  11.     title          = u'\u6cb3\u5317\u65b0\u5831'
  12.     __author__     = 'Hiroshi Miura'
  13.     oldest_article = 2
  14.     max_articles_per_feed = 20
  15.     description    = 'Tohoku regional news paper in Japan'
  16.     publisher      = 'Kahoku Shinpo Sha'
  17.     category       = 'news, japan'
  18.     language       = 'ja'
  19.     encoding      = 'Shift_JIS'
  20.     no_stylesheets = True
  21.  
  22.     feeds          = [(u'news', u'http://www.kahoku.co.jp/rss/index_thk.xml')]
  23.  
  24.     keep_only_tags = [ dict(id="page_title"),
  25.                                    dict(id="news_detail"),
  26.                                    dict(id="bt_title"),
  27.                                    {'class':"photoLeft"},
  28.                                    dict(id="bt_body")
  29.                                  ]
  30.     remove_tags = [ {'class':"button"}]
  31.  
  32.