
Auto Douyin
This automates video publishing to Douyin (TikTok's Chinese version) through browser automation with Playwright. You scan a QR code once to save your login cookie, then call the publish script with your video file, title, and optional tags or scheduling time. It handles the whole creator center workflow: uploading, setting metadata, choosing covers, and posting immediately or on a timer. The implementation is based on social-auto-upload and works headless if you need it running in the background. Worth noting that you'll want to control your publishing frequency since it's simulating real browser interactions, and cookies eventually expire so you'll need to re-authenticate periodically.
- skills.sh installs
- 515
- GitHub stars
- 299
- last updated
- Aug 21, 2026
Install
$ npx -y skills add zrt-ai-lab/opencode-skills --skill auto-douyin --agent claude-codeInstalls into .claude/skills of the current project.
Files
抖音视频自动发布技能
这个技能用于自动化发布视频到抖音创作者中心。
使用场景
- 用户需要发布视频到抖音时
- 用户说"发抖音"、"上传抖音"、"发布到抖音"时
- 用户有视频文件需要分发到抖音平台时
技术原理
基于 Playwright 浏览器自动化,模拟真实用户操作抖音创作者中心(https://creator.douyin.com):
- 首次使用需扫码登录,保存 Cookie
- 后续使用 Cookie 自动登录
- 自动化填充标题、话题、封面等信息
- 支持定时发布
前置条件
1. 安装依赖
pip install playwright
playwright install chromium
2. 首次登录获取 Cookie
python .opencode/skills/auto-douyin/scripts/get_cookie.py
执行后会打开浏览器,使用抖音 APP 扫码登录,登录成功后 Cookie 会自动保存。
工作流程
第一步:确认登录状态
检查 Cookie 是否存在且有效:
python .opencode/skills/auto-douyin/scripts/check_cookie.py
如果 Cookie 失效,需要重新获取:
python .opencode/skills/auto-douyin/scripts/get_cookie.py
第二步:准备视频文件
视频文件要求:
- 格式:
.mp4(推荐) - 分辨率:建议 1080x1920(竖版 9:16)
- 文件大小:建议不超过 4GB
可选:准备同名的封面图片(.png 或 .jpg)
第三步:发布视频
python .opencode/skills/auto-douyin/scripts/publish.py \
--video "视频文件路径" \
--title "视频标题" \
--tags "话题1,话题2,话题3" \
[--cover "封面图片路径"] \
[--schedule "2025-01-31 18:00"]
参数说明
Sponsors
Details
- Repository
- github.com/zrt-ai-lab/opencode-skills
- Category
- AI & Agent Building
- First seen
- Jun 3, 2026