bilibili-downloader
Bilibili Downloader Skill
批量下载B站视频,提取音频MP3。
依赖
- yt-dlp (
pip install yt-dlp) - ffmpeg (已安装)
用法
Claude 会根据用户需求自动调用以下脚本:
1. 下载视频 → 提取音频 + 纯人声(推荐)
python ~/.claude/skills/bilibili-downloader/bili_download.py --url "BV链接" --audio-only --vocals
输出两份:原始MP3 + vocals/纯人声MP3(去背景音乐)
2. 下载多P合集 → 音频 + 纯人声
python ~/.claude/skills/bilibili-downloader/bili_download.py --url "BV链接" --audio-only --vocals --all-pages
3. 下载UP主全部投稿
python ~/.claude/skills/bilibili-downloader/bili_download.py --space "UP主UID" --audio-only --vocals
4. 只要音频不要人声分离
python ~/.claude/skills/bilibili-downloader/bili_download.py --url "BV链接" --audio-only
5. 只下载视频
python ~/.claude/skills/bilibili-downloader/bili_download.py --url "BV链接"
参数说明
| 参数 | 说明 |
|---|---|
--url |
B站视频链接(支持BV号、完整URL) |
--space |
UP主UID,下载全部投稿 |
--output |
输出目录,默认桌面 bilibili_downloads |
--audio-only |
只保留MP3音频,删除视频 |
--vocals |
同时生成纯人声MP3(去背景音乐,存入 vocals/ 子目录) |
--keep-video |
提取音频同时保留视频文件 |
--all-pages |
下载合集所有分P |
--cookies |
使用浏览器cookies(获取高清画质) |
人声分离(去背景音乐)
# 单个文件
python ~/.claude/skills/bilibili-downloader/vocal_extract.py "input.mp3" -o ./vocals
# 批量处理整个目录
python ~/.claude/skills/bilibili-downloader/vocal_extract.py ~/Desktop/bilibili_downloads/ -o ~/Desktop/bilibili_downloads/vocals
使用 Meta 的 htdemucs 模型,AI 分离人声和背景音乐,输出纯人声 MP3。
工作流程
- 询问用户:下载范围、输出格式、存放路径
- 运行脚本批量下载
- ffmpeg 提取音频为 MP3
- 按需清理视频文件
- 汇报结果
More from atxinsky/skills
subagent-driven-development
Use when executing implementation plans with independent tasks in the current session
4frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications. Generates creative, polished code that avoids generic AI aesthetics.
3ui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
2writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
2brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
2notion-save
Save notes, ideas, and content directly to Notion database. Use when Claude needs to persist conversation insights, trading notes, research findings, or any content to Notion for later reference. Triggers on phrases like "save to notion", "记录到notion", "add to my notes database".
2