from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1278162597(BasicNewsRecipe): __author__ = 'rty' title = u'China Economic Net' oldest_article = 7 max_articles_per_feed = 100 pubisher = 'www.ce.cn - China Economic net - Beijing' description = 'China Economic Net Magazine' category = 'Economic News Magazine, Chinese, China' feeds = [ (u'Stock Market 股市', u'http://finance.ce.cn/stock/index_6304.xml'), (u'Money 理财', u'http://finance.ce.cn/money/index_6301.xml'), (u'Health 健康', u'http://www.ce.cn/health/index_6294.xml'), (u'Technology 科技', u'http://sci.ce.cn/mainpage/index_6307.xml'), (u'Domestic Politics 国内时政', u'http://www.ce.cn/xwzx/gnsz/index_6273.xml') ] masthead_url = 'http://finance.ce.cn/images/08mdy_logo.gif' extra_css = ''' @font-face {font-family: "DroidFont", serif, sans-serif; src: url(res:///system/fonts/DroidSansFallback.ttf); }\n body {margin-right: 8pt; font-family: 'DroidFont', serif;}\n h1 {font-family: 'DroidFont', serif;}\n .articledescription {font-family: 'DroidFont', serif;} ''' remove_javascript = True use_embedded_content = False no_stylesheets = True language = 'zh_CN' encoding = 'gb2312' conversion_options = {'linearize_tables': True} keep_only_tags = [ dict(name='h1', attrs={'id': 'articleTitle'}), dict(name='div', attrs={'class': 'laiyuan'}), dict(name='div', attrs={'id': 'articleText'}), ]