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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1278162597(BasicNewsRecipe):
  4.     __author__            = 'rty'
  5.     title          = u'China Economic Net'
  6.     oldest_article = 7
  7.     max_articles_per_feed = 100
  8.  
  9.     pubisher  = 'www.ce.cn - China Economic net - Beijing'
  10.     description           = 'China Economic Net Magazine'
  11.     category              = 'Economic News Magazine, Chinese, China'
  12.     feeds          = [
  13.     (u'Stock Market Φéíσ╕é', u'http://finance.ce.cn/stock/index_6304.xml'),
  14.     (u'Money τÉåΦ┤ó', u'http://finance.ce.cn/money/index_6301.xml'),
  15.     (u'Health σüÑσ║╖', u'http://www.ce.cn/health/index_6294.xml'),
  16.     (u'Technology τºæµèÇ', u'http://sci.ce.cn/mainpage/index_6307.xml'),
  17.     (u'Domestic Politics σ¢╜σåàµù╢µö┐', u'http://www.ce.cn/xwzx/gnsz/index_6273.xml')
  18.     ]
  19.     masthead_url = 'http://finance.ce.cn/images/08mdy_logo.gif'
  20.     extra_css = '''
  21.         @font-face {font-family: "DroidFont", serif, sans-serif; src: url(res:///system/fonts/DroidSansFallback.ttf); }\n
  22.     body {margin-right: 8pt; font-family: 'DroidFont', serif;}\n
  23.                     h1 {font-family: 'DroidFont', serif;}\n
  24.                     .articledescription {font-family: 'DroidFont', serif;}
  25.             '''
  26.     remove_javascript = True
  27.     use_embedded_content   = False
  28.     no_stylesheets = True
  29.     language = 'zh_CN'
  30.     encoding   = 'gb2312'
  31.     conversion_options = {'linearize_tables':True}
  32.  
  33.  
  34.     keep_only_tags = [
  35.  
  36.      dict(name='h1', attrs={'id':'articleTitle'}),
  37.      dict(name='div', attrs={'class':'laiyuan'}),
  38.                      dict(name='div', attrs={'id':'articleText'}),
  39.                                ]
  40.