ClawHub
SkillsPluginsTemplatesDocsSupport
K
SkillsYq Bilibili Skill

Yq Bilibili Skill

tianheihei002@tianheihei002
Install in OpenClaw
Requires OpenClaw desktop app
哔哩哔哩CLI工具,支持抓取视频详情/字幕/AI摘要/评论/相关视频,提取音频并分割为ASR-ready WAV片段,获取用户资料/视频列表/关注列表,搜索用户或视频,热门视频/全站排行榜,动态时间线,收藏夹/稍后观看/观看历史,点赞/投币/一键三连等互动操作。当用户要求获取B站视频信息、下载音频、查询UP主信息...
Security check
Review
Version
1.0.0
Updated
May 18, 2026
License
MIT-0

Latest: v1.0.0

Initial release of yq-bilibili-skill.

  • Provides CLI commands for Bilibili video details, subtitles (with timeline and SRT export), AI summaries, comments, related videos, and recommendations.
  • Supports audio extraction and splitting into ASR-ready WAV or keeping full m4a, with custom segment length and output directory.
  • Enables fetching and searching Bilibili user info, user video list, following list, favorites, watch-later, and viewing history.
  • Includes commands for site-wide/hot video finding, keyword/user search, and dynamic feeds with pagination.
  • Allows interactive actions: like, coin, triple (点赞+投币+收藏), and unfollow.
  • Handles login/QR authentication, credential management, and permission checks.
  • All commands support YAML and JSON output for easy data integration and AI processing.
  • Provides troubleshooting tips, installation instructions, and comprehensive usage examples.
Creative
#音频
Full description

哔哩哔哩CLI工具,支持抓取视频详情/字幕/AI摘要/评论/相关视频,提取音频并分割为ASR-ready WAV片段,获取用户资料/视频列表/关注列表,搜索用户或视频,热门视频/全站排行榜,动态时间线,收藏夹/稍后观看/观看历史,点赞/投币/一键三连等互动操作。当用户要求获取B站视频信息、下载音频、查询UP主信息、搜索B站内容、获取热门榜单、查看收藏夹、执行B站互动操作时使用。

yq-bilibili-skill - 哔哩哔哩数据抓取与互动

简介

这是一个基于 bilibili-cli 的Agent Skill,提供哔哩哔哩视频、音频、用户信息抓取以及互动功能的完整解决方案。

核心功能

1. 视频相关功能

功能命令说明
视频详情bili video <BV号>获取视频基本信息
字幕bili video <BV号> --subtitle获取字幕(纯文本)
字幕时间轴bili video <BV号> --subtitle-timeline获取带时间轴的字幕
导出SRTbili video <BV号> -st --subtitle-format srt导出为SRT格式
AI摘要bili video <BV号> --ai获取AI生成的视频摘要
评论bili video <BV号> --comments获取热门评论
相关视频bili video <BV号> --related获取相关视频推荐

2. 音频提取功能

功能命令说明
下载并分割bili audio <BV号>下载音频并分割为25秒WAV片段
自定义片段时长bili audio <BV号> --segment 60设置60秒分割
完整音频bili audio <BV号> --no-split保持完整m4a格式
自定义输出目录bili audio <BV号> -o ~/data/指定输出路径

3. 用户相关功能

功能命令说明
UP主资料bili user <UID>获取UP主个人资料
搜索用户bili user "<用户名>"按名称搜索用户
UP主视频列表bili user-videos <UID> --max 20获取视频列表(最多20个)

4. 发现与搜索功能

功能命令说明
热门视频bili hot获取热门视频(第1页)
分页热门bili hot --page 2 --max 10第2页,前10条
全站排行榜bili rank3日排行榜
自定义天数bili rank --day 7 --max 307日榜,前30
搜索用户bili search "<关键词>"搜索用户
搜索视频bili search "<关键词>" --type video --max 5搜索视频
搜索分页bili search "<关键词>" --page 2下一页
动态时间线bili feed获取关注动态
分页动态bili feed --offset <cursor>通过cursor翻页

5. 收藏与历史功能

功能命令说明
收藏夹列表bili favorites获取收藏夹列表
收藏夹内容bili favorites --page 2收藏夹视频(第2页)
关注列表bili following获取关注列表
稍后观看bili watch-later获取稍后观看列表
观看历史bili history获取观看历史

6. 互动功能

功能命令说明
点赞bili like <BV号>给视频点赞
投币bili coin <BV号>给视频投币
一键三连bili triple <BV号>点赞+投币+收藏
取关bili unfollow <UID>取消关注

7. 认证相关

功能命令说明
登录状态bili status检查登录状态
扫码登录bili loginQR码登录
个人信息bili whoami详细个人资料

输出格式

所有命令支持以下输出格式:

参数说明
--yamlYAML格式输出(推荐用于AI处理)
--jsonJSON格式输出(结构化数据)

通用参数

参数说明
--page N分页号
--max N最大结果数
--offset N翻页游标
-o PATH输出目录
--day N排行榜天数(3或7)

环境变量

bash
# 覆盖默认输出模式
OUTPUT=yaml|json|rich|auto

认证说明

bilibili-cli采用3层认证策略:

  1. 已保存凭证 - 从 ~/.bilibili-cli/credential.json 加载
  2. 浏览器Cookies - 自动从Chrome/Firefox/Edge/Brave提取
  3. 扫码登录 - bili login 在终端显示二维码

权限说明:

  • 大部分命令无需登录
  • 字幕/收藏/关注/稍后观看/历史/动态需要登录
  • 点赞/投币/三连/取关/发布动态需要写入权限

常见问题排查

问题解决方案
需要登录运行 bili login 扫码,或确保浏览器已登录bilibili
HTTP 412 限流等待后重试,或减少 --max 数量
无法提取BV号检查BV格式,必须是BV+10位字符
NetworkError检查网络,代理需支持目标域名
不支持写操作重新 bili login 获取完整权限

安装方式

bash
# 推荐: uv工具(快速隔离)
uv tool install bilibili-cli

# 或: pipx
pipx install bilibili-cli

# 需要音频功能
uv tool install "bilibili-cli[audio]"
pipx install "bilibili-cli[audio]"

使用示例

示例1: 获取视频详情(AI友好格式)

bash
bili video BV1ABcsztEcY --yaml

示例2: 下载音频并分割为ASR片段

bash
bili audio BV1ABcsztEcY --segment 25 -o ./audio/

示例3: 搜索并获取视频评论

bash
bili search "Python教程" --type video --max 10
bili video BV1xxx --comments --yaml

示例4: 获取UP主全部视频

bash
bili user-videos 946974 --max 50

示例5: 查看热门榜单

bash
bili hot --page 1 --max 20
bili rank --day 7

示例6: 登录并执行互动

bash
bili login
bili triple BV1ABcsztEcY --json

Related skills

More in Creative
ClawHub

Skills and plugins for OpenClaw agents. Part of the wider OpenClaw ecosystem.

Explore docs

SkillsPluginsTemplatesOfficialAudits

Publish SkillPublish PluginCreate org

OverviewOpenClawDocsBlog

SupportGitHubDiscord

Built alongside the OpenClaw ecosystem

LobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projectsLobsterCrabboxClickClackCrabfleetOctopoolClawSweeperagent-skillsdiscrawlgitcrawlslacrawlnotcrawltelecrawlgraincrawlcrawlkitcrawlbaracpxmcporterTachikomaclawpatchclawbenchPeekaboocookbookplugin-inspectorwacrawlcrabpotAll projects

© 2026 OpenClaw Foundation

Privacy policy·Status·Deployed on Vercel·Powered by Convex

....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals
  hooks runners slash-commands skill.md templates scanners review-bots     safe browse paths   official gateways   publisher handles   org trust   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@
openclaw ecosystem    crabbox clickclack crawler packs gateway plugins   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship
---- downloads installs stars lineage ownership docs package integrity   >>> install scan publish verify    @@ gateway @@ registry @@ agents @@   :::: signed manifests ::::: moderated releases ::::: version history ::::
  safe browse paths   official gateways   publisher handles   org trust     30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship     hooks runners slash-commands skill.md templates scanners review-bots
....:: clawhub/openclaw ::....  skills plugins publishers trust signals   :::: signed manifests ::::: moderated releases ::::: version history ::::   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins
>>> install scan publish verify    @@ gateway @@ registry @@ agents @@     hooks runners slash-commands skill.md templates scanners review-bots   ---- downloads installs stars lineage ownership docs package integrity
  30 skills 12 plugins    /api/v1/skills   /owners   /audit   /ship   openclaw ecosystem    crabbox clickclack crawler packs gateway plugins     safe browse paths   official gateways   publisher handles   org trust
:::: signed manifests ::::: moderated releases ::::: version history ::::   ---- downloads installs stars lineage ownership docs package integrity   ....:: clawhub/openclaw ::....  skills plugins publishers trust signals