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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1277443634(BasicNewsRecipe):
  4.     title          = u'BBC Chinese'
  5.     oldest_article = 7
  6.     max_articles_per_feed = 100
  7.  
  8.     feeds          = [
  9.     (u'\u4e3b\u9875', u'http://www.bbc.co.uk/zhongwen/simp/index.xml'),
  10.     (u'\u56fd\u9645\u65b0\u95fb', u'http://www.bbc.co.uk/zhongwen/simp/world/index.xml'),
  11.     (u'\u4e24\u5cb8\u4e09\u5730', u'http://www.bbc.co.uk/zhongwen/simp/china/index.xml'),
  12.     (u'\u91d1\u878d\u8d22\u7ecf', u'http://www.bbc.co.uk/zhongwen/simp/business/index.xml'),
  13.     (u'\u7f51\u4e0a\u4e92\u52a8', u'http://www.bbc.co.uk/zhongwen/simp/interactive/index.xml'),
  14.     (u'\u97f3\u89c6\u56fe\u7247', u'http://www.bbc.co.uk/zhongwen/simp/multimedia/index.xml'),
  15.     (u'\u5206\u6790\u8bc4\u8bba', u'http://www.bbc.co.uk/zhongwen/simp/indepth/index.xml')
  16.     ]
  17.     extra_css = '''
  18.         @font-face {font-family: "DroidFont", serif, sans-serif; src: url(res:///system/fonts/DroidSansFallback.ttf); }\n
  19.     body {margin-right: 8pt; font-family: 'DroidFont', serif;}\n
  20.                     h1 {font-family: 'DroidFont', serif;}\n
  21.                     .articledescription {font-family: 'DroidFont', serif;}
  22.             '''
  23.     __author__            = 'rty'
  24.     __version__            = '1.0'
  25.     language = 'zh'
  26.     pubisher  = 'British Broadcasting Corporation'
  27.     description           = 'BBC news in Chinese'
  28.     category              = 'News, Chinese'
  29.     remove_javascript = True
  30.     use_embedded_content   = False
  31.     no_stylesheets = True
  32.     encoding               = 'UTF-8'
  33.     conversion_options = {'linearize_tables':True}
  34.     masthead_url = 'http://wscdn.bbc.co.uk/zhongwen/simp/images/1024/brand.jpg'
  35.     keep_only_tags = [
  36.                               dict(name='h1'),
  37.                               dict(name='p', attrs={'class':['primary-topic','summary']}),
  38.                               dict(name='div', attrs={'class':['bodytext','datestamp']}),
  39.                               ]
  40.