zhishi.me API

# coding=utf-8
# 'zhishi.me' API, 中文通用知识图谱,融合百度百科、互动百科和维基百科的数据
import requests
print('嗨,你想了解什么?')
while True:
    Input = input('我:')
    url = 'http://zhishi.me/api/entity/%s' % Input
    response = requests.get(url)
    response.encoding = 'utf-8'
    html = response.text
    html = eval(html)
    print('小思:', html)

你可能感兴趣的:(zhishi.me API)