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": "你都知道你还问[不屑脸],哈哈党"
}
Metadata
Release files for msxiaoiceapi 1.6.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| msxiaoiceapi-1.6.5.tar.gz | 3.6 kB | Without provenance | Details for msxiaoiceapi-1.6.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| msxiaoiceapi-1.6.5-py3-none-any.whl | Python 3 | none | any | Details for msxiaoiceapi-1.6.5-py3-none-any.whl |
Total release size: 6.5 kB
Release files / msxiaoiceapi-1.6.5.tar.gz
| Download URL | msxiaoiceapi-1.6.5.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e03bbf6ad2a02097c7ba0de8bce01804af34a94deda1cff79d222bf0addf0406
|
|
BLAKE2b-256 checksum How to use checksums |
f0cfa5261169f9f04e81722508ac0efbb53d032c33e89a431b7517fe35d5e240
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.2
|
Release files / msxiaoiceapi-1.6.5-py3-none-any.whl
| Download URL | msxiaoiceapi-1.6.5-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
676d0957bf836b169bb32db43c1f9103fcba4fd483c1dcee7fb400334cb130f6
|
|
BLAKE2b-256 checksum How to use checksums |
1b3caed3feaa5b831b42475375fa8850ce7ee81c99c09ce24dca6edec813f7c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.2
|
Security for msxiaoiceapi 1.6.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.