import json def save_2_json(data, keyword, date): json_data = json.dumps(data, ensure_ascii=False) file = open('微博爬取内容-' + keyword + '-' + date + '.json', 'w') file.write(json_data) file.close()