How ahang008/ah-douyin-clean-downloader works
This repository is a Codex Skill for authorized Douyin media workflows: downloading a single original video, preparing a corrected transcript, archiving a creator’s public works, and rewriting an existing library into speech-ready scripts. The graph keeps those user-facing branches distinct and includes the browser/network support layer. README statements establish the documented workflows; source excerpts show selected implementation details, but several creator-archive and export connections are not independently verified in sampled code.
Main entry points: run_creator.py Creator workflow runner · transcribe_douyin.py Transcript preparation · download_batch.py Batch downloader · download_douyin.py Single downloader
Components 20
Single video
- Single downloader
scripts/download_douyin.py - Transcript preparation
scripts/transcribe_douyin.py - Local ASR
scripts/transcribe_local.py - Corrected Markdown / SRT
Creator archive
- Creator workflow runner
scripts/run_creator.py - Public catalog collector
scripts/collect_creator_browser.py - Creator catalog
- Batch downloader
scripts/download_batch.py - Official detail recovery
scripts/recover_official_web_detail.py - Cover and caption metadata
scripts/collect_cover_metadata.py - Creator metrics
scripts/work_metrics.py - Transcript export
scripts/export_transcripts.py - Local media library
Transcript and rewrite
- Rewrite batch preparation
scripts/batch_rewrite.py - Codex draft rewriting
- Speech scripts and indexes
Browser and network
- Dedicated browser launcher
scripts/launch_browser_collector.py - Browser DNS proxy
scripts/browser_dns_proxy.py
Other components
- User / Codex
- Douyin
Connections 23
- User / Codex → Single downloader: requests download
README.md - Single downloader → Douyin: fetches playback source
README.md - User / Codex → Transcript preparation: requests transcript
README.md - Transcript preparation → Single downloader: downloads source
scripts/transcribe_douyin.py - Transcript preparation → Local ASR: runs recognition
scripts/transcribe_douyin.py - Transcript preparation → Corrected Markdown / SRT: prepares draft for correction
scripts/transcribe_douyin.py - User / Codex → Creator workflow runner: requests creator archive
README.md - Creator workflow runner → Public catalog collector: collects public catalog
- Public catalog collector → Creator catalog: saves catalog
README.md - Creator workflow runner → Batch downloader: downloads works
- Batch downloader → Douyin: retrieves media
README.md - Batch downloader → Local media library: stores original media
README.md - Creator workflow runner → Official detail recovery: recovers missing details
- Creator workflow runner → Cover and caption metadata: collects captions and cover text
- Creator catalog → Cover and caption metadata: provides catalog input
scripts/collect_cover_metadata.py - Creator workflow runner → Creator metrics: generates metrics
- Creator workflow runner → Transcript export: exports transcripts
- Local media library → Rewrite batch preparation: supplies existing library
README.md - User / Codex → Rewrite batch preparation: requests batch rewrite
README.md - Rewrite batch preparation → Codex draft rewriting: prepares writing shards
README.md - Codex draft rewriting → Speech scripts and indexes: writes scripts and indexes
README.md - Dedicated browser launcher → Browser DNS proxy: starts when needed
scripts/launch_browser_collector.py - Dedicated browser launcher → Public catalog collector: supports browser collection