← 返回 Skills 市场
chongjie-ran

Douyin Automation

作者 chongjie-ran · GitHub ↗ · v1.0.0 · MIT-0
macoslinuxwindows ✓ 安全检测通过
192
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install douyin-automation
功能描述
Puppeteer-based Douyin (TikTok China) video uploader. Automate login, upload and publish videos to Douyin Creator Platform using headless browser. 抖音视频自动化发布工...
使用说明 (SKILL.md)

Douyin Video Uploader | 抖音视频上传工具

Douyin (TikTok China) video upload automation — login, upload, and manage your Douyin Creator account from the command line or AI agents.

自动化上传视频到抖音创作者平台,支持登录、上传和账号管理。

Keywords: Douyin uploader, TikTok China, video upload, social media automation, 抖音上传, 抖音自动化, 短视频发布, creator platform

This skill is self-contained — all code is bundled, no external repo cloning needed. 此 skill 为自包含结构,所有代码已打包在内,无需克隆外部仓库。

Important: First Upload Requires SMS Verification | 重要提示:首次上传需要短信验证

After logging in, your first video upload will require SMS verification. Enter the verification code when prompted. After this one-time verification, all subsequent uploads will be fully automated.

登录成功后,第一次上传视频需要短信验证。 按提示输入验证码即可。完成一次验证后,之后的上传将完全自动化,无需再次验证。

Transparency Statement | 透明度声明

Data Storage | 数据存储

  • Cookie file / Cookie 文件: {baseDir}/douyin-cookies.json — Stores Douyin login credentials locally only (file permission: 0600) / 存储抖音登录凭证,仅在本地保存(文件权限:0600)
  • Browser data / 浏览器数据: {baseDir}/chrome-user-data/ — Puppeteer browser session data

Network Access | 网络访问

This tool only accesses official Douyin domains / 本工具仅访问以下抖音官方域名:

  • https://creator.douyin.com — Douyin Creator Platform (login & upload) / 抖音创作者平台(登录、上传)
  • https://www.douyin.com — Douyin main site (permission verification) / 抖音主站(权限验证)

No third-party servers are accessed. Your credentials are never uploaded or leaked. 不会访问任何第三方服务器,不会上传或泄露您的登录凭证。

Code Behavior | 代码行为

  1. login.js: Opens browser → navigates to Douyin login → waits for manual login → saves Cookie locally / 打开浏览器 → 导航到抖音登录页 → 等待用户手动登录 → 保存 Cookie 到本地文件
  2. upload.js: Loads Cookie → auto-login → uploads video → fills title/description/tags → publishes / 读取本地 Cookie → 自动登录 → 上传指定视频文件 → 填写标题/描述/标签 → 发布
  3. manage.js: Read/validate/delete local Cookie files / 读取/验证/删除本地 Cookie 文件

Dependencies | 依赖

  • puppeteer: Browser automation (Chromium) / 浏览器自动化(Chromium)
  • Full dependencies: see package.json in this directory / 完整依赖: 见本目录 package.json

Installation | 安装

First-time setup — install dependencies / 首次使用需要安装依赖:

cd {baseDir} && npm install

Note / 说明: Only installs puppeteer, no external repo cloning needed / 仅安装 puppeteer 依赖,无需克隆外部仓库。

Feature 1: Login to Douyin | 功能一:登录抖音

Login to Douyin Creator Platform and save credentials (Cookie). 登录抖音创作者平台,保存登录凭证(Cookie)。

cd {baseDir} && node scripts/login.js

Process / 流程:

  1. Auto-opens a browser window / 自动打开浏览器窗口
  2. Waits for user to complete login (QR code or password) / 等待用户完成登录(扫码或账号密码)
  3. Saves Cookie automatically after login / 登录成功后自动保存 Cookie

Output example / 输出示例:

✅ Login successful!
User: 用户昵称
Cookies saved: 25

Feature 2: Upload Video | 功能二:上传视频

Upload video to Douyin with title, description and tags. 上传视频到抖音,支持设置标题、描述和标签。

cd {baseDir} && node scripts/upload.js --video "视频路径" --title "视频标题"

Parameters / 参数:

Parameter 参数 Required 必需 Description 说明
--video Yes 是 Absolute path to video file / 视频文件绝对路径
--title Yes 是 Video title / 视频标题
--description No 否 Video description / 视频描述
--tags No 否 Tags, comma-separated / 标签,逗号分隔
--no-publish No 否 Save as draft only / 仅保存草稿

Full example / 完整示例:

cd {baseDir} && node scripts/upload.js \
  --video "/Users/xxx/video.mp4" \
  --title "我的视频" \
  --description "视频描述" \
  --tags "日常,生活,记录"

Output example / 输出示例:

✅ Video upload and publish successful!
Title: 我的视频
Status: Published

Feature 3: Manage Login Status | 功能三:管理登录状态

Check, view or clear login data / 检查、查看或清除登录数据。

Check if login is valid | 检查登录是否有效

cd {baseDir} && node scripts/manage.js check

View Cookie info | 查看 Cookie 信息

cd {baseDir} && node scripts/manage.js info

Clear login data | 清除登录数据

cd {baseDir} && node scripts/manage.js clear

FAQ | 常见问题

Q: "Login expired" error? Q: 提示 "Login expired"?

cd {baseDir} && node scripts/manage.js clear
cd {baseDir} && node scripts/login.js

Q: SMS verification during upload? / Q: 上传时遇到短信验证? The program will prompt you — enter the code as instructed. 程序会自动提示,按提示输入验证码即可。

Q: How long does the Cookie last? / Q: Cookie 有效期多久? About 30 days. Check login status regularly. 约 30 天,建议定期检查登录状态。

安全使用建议
This package appears to do what it claims: Puppeteer scripts to log in and upload to Douyin, storing cookies locally (douyin-cookies.json, permission 0600) and browser data in chrome-user-data/. Before installing: 1) review the included files if you need to be sure nothing hidden is occurring (all code is bundled). 2) Be aware npm install puppeteer will contact the npm registry and typically download a Chromium binary; perform installs in a trusted or isolated environment if you are concerned. 3) Stored cookies allow subsequent automated uploads — only enable autonomous agent invocation if you trust the agent's behavior (it could publish content using saved cookies). 4) If you require higher assurance, run the tool in a sandboxed account or container and verify network activity during install and first run.
功能分析
Type: OpenClaw Skill Name: douyin-automation Version: 1.0.0 The skill is a legitimate Puppeteer-based automation tool for uploading videos to the Douyin (TikTok China) Creator Platform. It manages login sessions by storing cookies locally in 'douyin-cookies.json' with restricted file permissions (0600) and includes logic for handling titles, tags, and manual SMS verification prompts via 'douyin-uploader.js'. No evidence of data exfiltration, malicious network activity, or prompt injection was found; the code interacts exclusively with official Douyin domains.
能力评估
Purpose & Capability
Name/description match the included code and scripts. Required binaries (node, npm, and a Chromium/Chrome binary) and the puppeteer dependency are appropriate for a headless-browser uploader. No unrelated credentials, config paths, or binaries are requested.
Instruction Scope
SKILL.md instructs only about installing puppeteer and running the bundled login/upload/manage scripts. The instructions reference the local cookie file and browser user-data directory (both expected). There are no directives to read unrelated system files or send data to third‑party endpoints; runtime network activity targets Douyin pages for login/upload.
Install Mechanism
Installation is a single npm dependency (puppeteer). This is expected for a Puppeteer tool, but note that puppeteer typically downloads a Chromium binary from upstream during npm install (network activity to package registry and chromium hosts). The install source is npm (traceable) rather than an arbitrary URL or extractor, which is moderate and expected for this purpose.
Credentials
The skill requires no environment variables or external credentials. It stores cookies locally (douyin-cookies.json) and browser data under chrome-user-data/ in the skill directory — these are proportional to the stated functionality. No extra secrets (API keys/tokens) are requested.
Persistence & Privilege
The skill does persist state locally (cookies and browser profile) within its directory, which is normal for a browser automation tool. always is false and the skill does not request elevated system-wide privileges or modify other skills' configs. Be aware that an agent invoking this skill autonomously could post using stored cookies (this is expected behavior but has policy/operational implications).
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install douyin-automation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /douyin-automation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
douyin-automation 1.0.0 - Initial release supporting automated login, upload, and video publishing on Douyin Creator Platform using Puppeteer. - Provides command-line scripts for login, video upload (with title, description, tags), and login management (check, view, clear credentials). - Secure local storage of Douyin login credentials and browser session data; no external servers accessed. - SMS verification required on first upload after login; subsequent uploads fully automated. - Supports macOS, Linux, and Windows environments.
元数据
Slug douyin-automation
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Douyin Automation 是什么?

Puppeteer-based Douyin (TikTok China) video uploader. Automate login, upload and publish videos to Douyin Creator Platform using headless browser. 抖音视频自动化发布工... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 192 次。

如何安装 Douyin Automation?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install douyin-automation」即可一键安装,无需额外配置。

Douyin Automation 是免费的吗?

是的,Douyin Automation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Douyin Automation 支持哪些平台?

Douyin Automation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(macos, linux, windows)。

谁开发了 Douyin Automation?

由 chongjie-ran(@chongjie-ran)开发并维护,当前版本 v1.0.0。

💬 留言讨论