Professional Douyin downloader with:
- Short link resolution
- Watermark-free video download (
playwm->play) - Audio-only download
- Cover image download
- Exponential-backoff retries
- Chunked streaming download with progress
- Logging to
logs/app.log - CLI + optional Flask web app
- Python 3.10+
requests- Optional web mode:
Flask
Install dependencies:
pip install -r requirements.txtRun with prompt:
python main.pyRun with arguments:
python main.py "https://v.douyin.com/xxxxx/" --mode video
python main.py "https://v.douyin.com/xxxxx/" --mode audio
python main.py "https://v.douyin.com/xxxxx/" --mode coverLocal run:
python app.pyThen open http://127.0.0.1:5000.
This repo includes:
Procfileruntime.txtrequirements.txt
Recommended start command:
gunicorn app:app --bind 0.0.0.0:$PORT --workers 2 --timeout 120