44 lines
799 B
Markdown
44 lines
799 B
Markdown
# KB Link Parser Skill
|
|
|
|
**kb-link-parser** - Extract and resolve IDs from various platform URLs.
|
|
|
|
## Features
|
|
|
|
- Multi-platform support: Bilibili, YouTube, Zhihu
|
|
- Short link detection: b23.tv and other short links
|
|
- Multiple content types: video, article, up主, playlist, collection
|
|
- Batch processing from file
|
|
- JSON output format
|
|
|
|
## Commands
|
|
|
|
```bash
|
|
# Parse single URL
|
|
python link-parser.py --url "https://www.bilibili.com/video/BV1xx411c7mD"
|
|
|
|
# Batch processing
|
|
python link-parser.py --batch urls.txt --output results.json
|
|
|
|
# Output format
|
|
python link-parser.py --url "..." --format json
|
|
```
|
|
|
|
## Output
|
|
|
|
```json
|
|
{
|
|
"success": true,
|
|
"data": {
|
|
"platform": "bilibili",
|
|
"type": "video",
|
|
"id": "BV1xx411c7mD"
|
|
}
|
|
}
|
|
```
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
cp -r kb-link-parser/ ~/skills/
|
|
```
|