def get_enterprise_detail(user_id, html): user = User(user_id) user.follows_num = enterprise.get_friends(html) user.fans_num = enterprise.get_fans(html) user.wb_num = enterprise.get_status(html) user.description = enterprise.get_description(html).encode('gbk', 'ignore').decode('gbk') return user