需要 python3+ BeautifulSoup flask 目前暂时只支持文字.
Project description
msxiaoiceapi
说明
需要 python3+ BeautifulSoup flask 目前暂时只支持文字
登陆微博 并将headers保存在根目录headers.txt中
确保已经领养小冰 这里我提供了一个测试账号
使用
打开chrome或者firefox
前往 微博私信小冰页面
按F12 然后给小冰发送一条消息 如下图
点击第二个 将Request Headers中的所有信息复制到headers.txt中
api模式:
python3 xiaoiceapi.py
然后在浏览器中输入
http://127.0.0.1:5000/?que=你是谁
一般模式:
直接调用xb.chat("你是谁")即可
return:
{
"status": "succeed",
"text": "你都知道你还问[不屑脸],哈哈党"
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
msxiaoiceapi-1.6.5.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for msxiaoiceapi-1.6.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 676d0957bf836b169bb32db43c1f9103fcba4fd483c1dcee7fb400334cb130f6 |
|
MD5 | a14ac9eb065c9dbcdc71991b710df2e1 |
|
BLAKE2b-256 | 1b3caed3feaa5b831b42475375fa8850ce7ee81c99c09ce24dca6edec813f7c6 |