Ivan Zhang
Ivan Zhang
1 from calibre.web.feeds.recipes import BasicNewsRecipe 2 3 class Wechat_Api(BasicNewsRecipe): 4 5 title = 'wechat_api' 6 description = '微信公众平台开发者文档' 7 cover_url = 'http://img.sj33.cn/uploads/allimg/201402/7-140223103130591.png' 8 9 url_prefix = 'http://mp.weixin.qq.com/wiki' 10 no_stylesheets =...
from calibre.web.feeds.recipes import BasicNewsRecipe class Wechat_Api(BasicNewsRecipe): ``` title = '微信公众平台开发者文档' description = '微信公众平台开发者文档' cover_url = 'http://img.sj33.cn/uploads/allimg/201402/7-140223103130591.png' url_prefix = 'http://mp.weixin.qq.com/wiki' keep_only_tags = [ dict(name='div', attrs={'class':['content_hd', 'bodyContent']}) ] def parse_index(self): soup =...