需要 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 details)
Built Distribution
File details
Details for the file msxiaoiceapi-1.6.5.tar.gz
.
File metadata
- Download URL: msxiaoiceapi-1.6.5.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e03bbf6ad2a02097c7ba0de8bce01804af34a94deda1cff79d222bf0addf0406 |
|
MD5 | bc5b09bf5aa06468de7310401637408b |
|
BLAKE2b-256 | f0cfa5261169f9f04e81722508ac0efbb53d032c33e89a431b7517fe35d5e240 |
File details
Details for the file msxiaoiceapi-1.6.5-py3-none-any.whl
.
File metadata
- Download URL: msxiaoiceapi-1.6.5-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 676d0957bf836b169bb32db43c1f9103fcba4fd483c1dcee7fb400334cb130f6 |
|
MD5 | a14ac9eb065c9dbcdc71991b710df2e1 |
|
BLAKE2b-256 | 1b3caed3feaa5b831b42475375fa8850ce7ee81c99c09ce24dca6edec813f7c6 |