Loading...
Loading...
Douyin Video Batch Download Tool - Implements efficient, incremental video download functionality based on the F2 framework. Supports single/batch creator download, automatic Cookie management, and differential update mechanism. This skill should be used when users need to batch download videos from specific creators, deploy automated downloads on servers, or regularly update video libraries.
npx skill4agent add cat-xierluo/legal-skills douyin-batch-download| Field | Description |
|---|---|
| Unique video ID |
| Creator UID |
| Video description/copy |
| Release time |
| Video duration |
| Like count |
| Comment count |
| Collect count |
| Share count |
video_metadatadouyin_users.db# Scan local videos and extract metadata (basic information)
python scripts/extract-metadata.py
# View statistical summary
python scripts/extract-metadata.py --stats⚠️ Note: Theoption has been deprecated. It is recommended to re-download videos using--fetch, which will automatically save statistical data.download-v2.py
# Create configuration
mkdir -p config
cp config/config.yaml.example config/config.yaml
# Edit configuration (fill in Cookie)
${EDITOR:-nano} config/config.yaml
# Single download (recommended)
python scripts/download-v2.py "https://www.douyin.com/user/MS4wLjABAAAA..."
# Batch download
python scripts/batch-download.py --all
# Interactive selection of creators for download
python scripts/batch-download.py
# Sample download (1 video per creator, quick data update)
python scripts/batch-download.py --sample
# Generate Web interface data
python scripts/generate-data.py
# View Web interface
open downloads/index.html1. Add creators → python scripts/manage-following.py --batch
2. Batch download → python scripts/batch-download.py --all
3. View data → open downloads/index.htmlskills/douyin-batch-download/
├── SKILL.md # This file
├── references/
│ ├── INSTALLATION.md # Detailed dependency installation instructions
│ └── USAGE.md # Detailed usage instructions
├── scripts/
│ ├── download-v2.py # ✅ Recommended download script (automatically saves statistical data)
│ ├── batch-download.py # Batch download entry
│ ├── download.py # ⚠️ Legacy download script (deprecated)
│ ├── manage-following.py # Following list management (add/delete/search)
│ ├── sync-following.py # Sync following.json from F2 database
│ ├── compress.py # Video compression script
│ ├── extract-metadata.py # Video metadata extraction
│ ├── generate-data.py # Generate Web interface data files
│ ├── following.py # following.json operation library
│ └── login.py # QR code login script
├── config/
│ ├── config.yaml.example # Configuration template
│ └── following.json # Following list (downloaded creators)
├── downloads/
│ ├── {uid}/ # Video directory categorized by creator UID
│ ├── data.js # Web interface data file
│ └── index.html # Web management interface
└── douyin_users.db # SQLite database (user info + video metadata)| Dependency | Installation Method |
|---|---|
| Chrome/Chromium | Download Link |
| ffmpeg | macOS: |
f2playwrightpyyamlhttpxaiofiles