Loading...
Loading...
Auto-publishing skill for Douyin videos. Use this skill when you need to publish videos to Douyin. Features include: obtaining login cookies, uploading videos, setting titles and hashtags, scheduled publishing, etc.
npx skill4agent add zrt-ai-lab/opencode-skills auto-douyinpip install playwright
playwright install chromiumpython .opencode/skills/auto-douyin/scripts/get_cookie.pypython .opencode/skills/auto-douyin/scripts/check_cookie.pypython .opencode/skills/auto-douyin/scripts/get_cookie.py.mp4.png.jpgpython .opencode/skills/auto-douyin/scripts/publish.py \
--video "path/to/video/file" \
--title "Video Title" \
--tags "hashtag1,hashtag2,hashtag3" \
[--cover "path/to/cover/image"] \
[--schedule "2025-01-31 18:00"]| Parameter | Short Form | Description | Required |
|---|---|---|---|
| | Path to video file | ✅ |
| | Video title (max 30 characters) | ✅ |
| | Hashtags, separated by commas | ❌ |
| | Path to cover image | ❌ |
| | Scheduled publishing time (format: YYYY-MM-DD HH:MM) | ❌ |
| Run in headless mode (browser not displayed) | ❌ |
# Publish immediately, auto-generate cover
python .opencode/skills/auto-douyin/scripts/publish.py \
-v ~/Videos/demo.mp4 \
-t "I learned a super practical trick today" \
-g "dry-goods-sharing, efficiency-improvement, learning"
# Scheduled publishing with specified cover
python .opencode/skills/auto-douyin/scripts/publish.py \
-v ~/Videos/demo.mp4 \
-t "Weekend Vlog | A cozy time alone" \
-g "vlog, weekend-daily, life-recording" \
-c ~/Videos/demo_cover.png \
-s "2025-02-01 18:00"
# Headless mode (run in background)
python .opencode/skills/auto-douyin/scripts/publish.py \
-v ~/Videos/demo.mp4 \
-t "Test Video" \
--headless.opencode/skills/auto-douyin/
├── skill.md # Skill documentation
├── scripts/
│ ├── get_cookie.py # Obtain login cookies
│ ├── check_cookie.py # Check cookie validity
│ └── publish.py # Main video publishing script
└── cookies/
└── douyin.json # Cookie storage file (auto-generated)get_cookie.pypublish.py