Download Douyin videos using the TikHub API. Handles short links, full URLs, and bare video IDs.
Requires a TikHub API token in ~/.openclaw/config.json:
{ "tikhub_api_token": "your-token-here" }
Free tokens: https://user.tikhub.io/register
python3 {baseDir}/scripts/douyin_download.pypython3 {baseDir}/scripts/douyin_download.py "https://v.douyin.com/xxxxx/"
python3 {baseDir}/scripts/douyin_download.py "https://v.douyin.com/xxxxx/" --download
python3 {baseDir}/scripts/douyin_download.py "https://v.douyin.com/xxxxx/" --download --output-dir /path/to/dir
python3 {baseDir}/scripts/douyin_download.py "7615599455526585067" --download
| Format | Example |
|---|---|
| -------- | --------- |
| Short link | https://v.douyin.com/iABCxyz/ |
| Full URL with modal_id | https://www.douyin.com/video/7615599455526585067 |
| URL query param | https://www.douyin.com/jingxuan?modal_id=7615599455526585067 |
| Bare modal_id | 7615599455526585067 |
--download: prints modal_id + direct video URL--download: downloads to ~/Downloads/douyin/douyin_.mp4 (or custom dir)共 1 个版本