haikubot:B站引流狗最爱的俳句生成器
简介
haikubot 是一个基于 Bilibili 视频生成俳句的命令行工具。
在这里,我参考了 bilibili-API-collect 仓库用于获取B站视频信息,你可以在 musicstream_url.md 和 videostream_url.md 来参考如何获取音视频流地址。
接着,我使用了dashscope api,调用alibaba的paraformer模型进行语音识别,识别出类字幕文本。
最后,我使用了openai的api,可以用兼容模型(比如qwen/deepseek)来生成俳句。
安装
pip install haikubot
使用方法
# 第一次使用,你应该配置dashscope的API密钥,你可以搜索百炼平台,进去获取api key,随后替换这里的YOUR_API_KEY,然后运行
haikubot config YOUR_API_KEY
# 之后,你可以这样使用BVID处理视频生成俳句
haikubot process BV117XoYGErB
# 显示版本信息
haikubot version
Metadata
Release files for haikubot 0.3.0
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 |
|---|---|---|---|---|
| haikubot-0.3.0.tar.gz | 6.2 kB | Without provenance | Details for haikubot-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| haikubot-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for haikubot-0.3.0-py3-none-any.whl |
Total release size: 13.6 kB
Release files / haikubot-0.3.0.tar.gz
| Download URL | haikubot-0.3.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab6e66a718a4faf36582ebb4b2425330ff54f9a9ebd32cc61817ad780d03ed10
|
|
BLAKE2b-256 checksum How to use checksums |
33336b3ccb32449280d1934b56d9aba7237889300f864482fadb13ba321cd75a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Release files / haikubot-0.3.0-py3-none-any.whl
| Download URL | haikubot-0.3.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2faafdccd7248c1c9c2d8e808a0a3becf2eb6b096b6bb58c08089e02520b71a7
|
|
BLAKE2b-256 checksum How to use checksums |
e8addafa323e76e6b16b80d2783dbc59894da65fae5f3c0ef9c3d768ef452e65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Security for haikubot 0.3.0
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.