Skip to main content

从Bilibili视频生成俳句的命令行工具

Project description

haikubot:B站引流狗最爱的俳句生成器

简介

haikubot 是一个基于 Bilibili 视频生成俳句的命令行工具。

在这里,我参考了 bilibili-API-collect 仓库用于获取B站视频信息,你可以在 musicstream_url.mdvideostream_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.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

haikubot-0.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file haikubot-0.1.1.tar.gz.

File metadata

  • Download URL: haikubot-0.1.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for haikubot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b963842ea3a0052ad964a324af63e5b068bb3ebba66a299e7b6218758d2b881b
MD5 38d52525e22f166cf46ed16455593758
BLAKE2b-256 ca69fe983b944f5452fa51650d1aabb44cf13e6dfb1546233240dcd27f9f6ebf

See more details on using hashes here.

File details

Details for the file haikubot-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: haikubot-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for haikubot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78b6d39f38b0eb32045ebe1b05450a3214bfef48fc4ca059e2c3c5bd585589ef
MD5 f62277054e4ae6a09c3b2e4af4705bf3
BLAKE2b-256 725e20acd471dde1fa142fb42bc73846d32543ea0744dd741f44770365538fd9

See more details on using hashes here.

Supported by

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