Skip to main content

需要  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


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)

Uploaded Source

Built Distribution

msxiaoiceapi-1.6.5-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page