douyin-cli
Skill1 starsChanged 14 days agoMITView on GitHub
会话持久化在 ~/.douyin-cli/profile(**user_data_dir 个人资料**,跨进程保留设备指纹)。 不要用 storage_state 复制:抖音 web 登录绑定设备指纹,复制到新 context 会被踢回登录页。 配乐说明:抖音图文默认是「原声」(无背景乐)。给图文加 BGM 能明显提升推流。 用 --music 或 --hot 会在发布时自动打开「选择音乐」曲库并选中一首(走抖音正版曲库,无版权风险)。 --hot 用于蹭热门;--music "燃向" 按题材关键词搜。
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/00-agents-standard.mdcCursor rule
- .cursor/rules/dy-publish.mdcCursor rule
- .cursor/rules/jev-claude.mdcCursor rule
- .cursor/rules/xhs-bundesliga.mdcCursor rule
- .cursor/rules/xhs-package-dod.mdcCursor rule
- .cursor/rules/xhs-publish-plain-text.mdcCursor rule
- .cursor/rules/xhs-series-v2.mdcCursor rule
- .cursor/rules/xhs-traffic.mdcCursor rule
- football-content-opsSkill
- atutun-xhs-coverSkill
- dbs-xhs-titleSkill
- dy-content-complianceSkill
- dy-culture-rxSkill
- dy-flowus-dbSkill
- dy-note-adaptSkill
- ip-character-systemSkill
- jev-judgeSkill
- tt-note-adaptSkill
- xhs-account-positioningSkill
- xhs-content-complianceSkill
- xhs-flowus-dbSkill
- xhs-note-structureSkill
- xhs-pipelineSkill
- xhs-title-ab-testSkill
- xhs-title-skillSkill
- xhs-topic-bankSkill
- xhs-voice-polishSkill
- xhs-weekly-retroSkill
- xiaohongshu-cliSkill
The file
Files
douyin-cli — 抖音图文发布 CLI
用途
抖音创作者中心「图文」一键发布:登录 / 状态 / 发图文。
安装
pip3 install playwright # 运行用本机 Chrome(channel="chrome"),无需下载浏览器登录(一次性)
python3 scripts/douyin-post.py login # 弹 Chrome 窗口,抖音 App 扫码
python3 scripts/douyin-post.py status # 验证 → AUTH_OK会话持久化在 ~/.douyin-cli/profile(user_data_dir 个人资料,跨进程保留设备指纹)。
不要用 storage_state 复制:抖音 web 登录绑定设备指纹,复制到新 context 会被踢回登录页。
发布
python3 scripts/douyin-post.py post \
--title "$(cat doc/<主题>/douyin-title.txt)" \
--desc "$(cat doc/<主题>/douyin-body.txt)" \
--images doc/<主题>/图集-1.png doc/<主题>/图集-2.png ... \
[--private] # 仅自己可见(设置失败即中止,绝不误发公开)
[--music "关键词"] # 从抖音曲库按关键词搜索配乐并选第一首
[--hot] # 直接用《热门榜》第一首作配乐
[--dry-run] # 填完不点发布,输出预览
[--headed] # 有头模式(排障/更稳)配乐说明:抖音图文默认是「原声」(无背景乐)。给图文加 BGM 能明显提升推流。
用 --music 或 --hot 会在发布时自动打开「选择音乐」曲库并选中一首(走抖音正版曲库,无版权风险)。
--hot 用于蹭热门;--music "燃向" 按题材关键词搜。
约束
- 标题 ≤30 字;描述 ≤1000 字(脚本强制校验)
- 图片 1–35 张,3:4、1080×1440 最稳。内页可复用小红书图卡;封面按 dy-publish 闸另做,不要今天风 / 对撞板原图
- 发布后脚本会耐心等「发文助手·快速检测」完成并命中「发布成功」;不要提前关浏览器,否则漏发
- 失败时脚本保存
/tmp/dy-*.png与/tmp/dy-*.txt(页面文本)便于无头排障
常用
| 命令 | 说明 |
python3 scripts/douyin-post.py login | 扫码登录(持久化) |
... status | 检查登录 |
... post --title --desc --images | 发图文 |
... post ... --private | 仅自己可见 |
... post ... --dry-run | 填好不发,看预览 |
注意事项
- 不要并行开多个 douyin-post 进程(同一 profile 会冲突)
- 账号发布后走平台「快速检测」,如果检测提示违规,按提示改再发
- 视频下载/私信/直播不在本工具范围
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

