672a811c54
- kb_workflow.py: 修复目录查询命令(--pending, --metadata等) - bilibili_metadata.py: headless默认True,逻辑保持纯净 - deep_analyzer.py: 添加缺失的pathlib.Path导入 - SKILL.md: 更新步骤说明,明确由workflow提供路径给子技能 fix: 修复Playwright启动失败(NameError)和路径自动获取问题
43 lines
1006 B
Markdown
43 lines
1006 B
Markdown
# KB Bilibili Content Skill
|
|
|
|
**kb-bilibili-content** - Download Bilibili videos and extract content.
|
|
|
|
## Features
|
|
|
|
- Video download (multiple quality options)
|
|
- Subtitle extraction
|
|
- Article content extraction
|
|
- Low quality for OCR (480p default)
|
|
|
|
## Commands
|
|
|
|
```bash
|
|
# Download video (传入 --output 指定完整路径)
|
|
python bilibili_content.py --id "BV1xx411c7mD" --type video --quality 480 --output "/path/to/downloads/BV1xx.mp4"
|
|
|
|
# Extract subtitle (传入 --output 指定完整路径)
|
|
python bilibili_content.py --id "BV1xx411c7mD" --type subtitle --output "/path/to/subtitles/BV1xx.srt"
|
|
|
|
# Get article content (传入 --output 指定完整路径)
|
|
python bilibili_content.py --id "cv43780186" --type article --output "/path/to/article.md"
|
|
```
|
|
|
|
## Output
|
|
|
|
```json
|
|
{
|
|
"success": true,
|
|
"type": "video",
|
|
"filename": "BV1xx.mp4",
|
|
"filepath": "/path/to/downloads/BV1xx.mp4",
|
|
"message": "下载完成"
|
|
}
|
|
```
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
cp -r kb-bilibili-content/ ~/skills/
|
|
pip install aiohttp
|
|
```
|