360 Secure SkillHub
360 安全技能中心

抖音自动发布

该 Skill 通过 Playwright 在用户本机操作抖音平台完成视频上传发布;提供默认与命名 Cookie 文件的获取、校验脚本,publish_guarded.py 为受控发布入口,publish.py 直调时也会先做平台授权;支持标题、标签、封面与定时发布时间参数,运行前需配置平台接口密钥。

xuhongfeii2
xuhongfeii2
热度 46.46
最近更新 2026-05-18 11:20:36
分类:营销依赖:代码执行 / 联网浏览搜索 / 第三方 API / 读写文件应用场景:社交媒体 / 自动化脚本 / 日程安排 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add douyin-upload-mul-cookie
Metadata
name
抖音自动发布
description
自动化发布抖音视频。上传到抖音平台。全自动操作。

auto-douyin skill

This skill publishes videos to Douyin on the user's machine with Playwright.

Default workflow

Use this order:

  1. Make sure the target Douyin cookie profile exists and is valid.
  2. Use the guarded publish entry so the platform can deduct points first.
  3. Let the local script finish on the user's machine.

Commands

Capture the default cookie:

python skills/auto-douyin/scripts/get_cookie.py

Capture a named cookie profile:

python skills/auto-douyin/scripts/get_cookie.py --cookie-name account_a

Validate a cookie profile:

python skills/auto-douyin/scripts/check_cookie.py --cookie-name account_a

Publish through the controlled path with a specific cookie profile:

python skills/auto-douyin/scripts/publish_guarded.py \
  --video "D:\\videos\\demo.mp4" \
  --title "Douyin title" \
  --tags "tag1,tag2" \
  --cover "D:\\videos\\cover.png" \
  --cookie-name account_a

Optional scheduled publish:

python skills/auto-douyin/scripts/publish_guarded.py \
  --video "D:\\videos\\demo.mp4" \
  --title "Douyin title" \
  --schedule "2026-03-20 18:30" \
  --cookie-name account_a

Cookie storage

  • Default cookie file: cookies/douyin.json
  • Named cookie file: cookies/douyin-<cookie-name>.json
  • --cookie-name is optional. If omitted, the scripts stay backward compatible and use the default file.

Required environment variables

  • CHANJING_PLATFORM_BASE_URL (optional, defaults to http://easyclaw.bar/shuzirenapi)
  • CHANJING_PLATFORM_API_TOKEN

or:

  • CHANJING_PLATFORM_API_KEY
  • CHANJING_PLATFORM_API_SECRET

If the key is missing or invalid, direct the user to http://easyclaw.bar/shuziren/user to generate a valid platform key.

Notes

  • publish_guarded.py is the normal entry point.
  • publish.py also performs platform authorization when called directly, so points are still deducted.
  • The guarded path controls normal usage and deducts points before publish starts.