从Bilibili视频生成俳句的命令行工具
Project description
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 BV117XoYGErB
# 显示版本信息
haikubot --version
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
haikubot-0.1.0.tar.gz
(136.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file haikubot-0.1.0.tar.gz.
File metadata
- Download URL: haikubot-0.1.0.tar.gz
- Upload date:
- Size: 136.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2bd95b2568f99191e43a68f73e4016acc0be7177c5232ae935c66b1306db44f
|
|
| MD5 |
7f83cf3e7c7d9c240d971038da294a83
|
|
| BLAKE2b-256 |
236d6a6376d47dc6e4c46ebd1d63b3ed50c7262bf71d10f6c0cdbcc006816bf9
|
File details
Details for the file haikubot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: haikubot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fff4a7ebbe3d5421053725e86c47716def8ff0a579f44b342adf464688920c8d
|
|
| MD5 |
b837b65f54f4732a39e85ad071205789
|
|
| BLAKE2b-256 |
27853a12a615f4c34bb4876ea05bc0ee418cab51e8c5fdce0817af42f366f063
|