1 青云客
http://api.qingyunke.com/
调用方法:
def qingyunke(self, msg):
url = 'http://api.qingyunke.com/api.php?key=free&appid=0&msg={}'.format(urllib.parse.quote(msg))
html = requests.get(url)
return html.json()["content"]
效果还不错,只是返回有点慢。
2 思知
https://www.ownthink.com
调用方法:
def ownthink(self, msg):
url = 'https://api.ownthink.com/bot?spoken={}'.format(urllib.parse.quote(msg))
html = requests.get(url)
return html.json()["data"]['info']['text']