技能圖譜SKILLSGROVE
技能圖譜/短影片與自媒體/cjccd/multi-platform-auto-upload/tiktok-upload

tiktok-upload

安裝

$npx skills add https://github.com/cjccd/multi-platform-auto-upload --skill tiktok-upload
$git clone --depth 1 https://github.com/cjccd/multi-platform-auto-upload.git /tmp/multi-platform-auto-upload && mkdir -p ~/.claude/skills && cp -r /tmp/multi-platform-auto-upload/skills/tiktok-upload ~/.claude/skills/tiktok-upload
請幫我安裝這個 Agent Skill:https://github.com/cjccd/multi-platform-auto-upload/tree/4c8b6465c2473aac3cfe064c8c6dfbadd87b2238/skills/tiktok-upload ,先閱讀它的 SKILL.md 和指令碼,確認安全後再安裝到我的技能目錄。

簡介

原文描述 · MIT当需要通过 `mpau tiktok` CLI 登录 TikTok Studio、校验 Cookie 或上传视频时使用此 skill。
以下 SKILL.md 內容轉載自 cjccd/multi-platform-auto-upload(提交 4c8b646),依據 MIT 許可證轉載正文(文字未改動;僅省略檔案頭後設資料、將圖片顯示為連結,超長內容會截斷);版權歸 2026 cjccd 所有。許可證:LICENSE。僅展示說明檔案,附帶指令碼請在原倉庫檢視。

TikTok 上传 Skill

统一使用项目 CLI 作为唯一执行入口:

mpau tiktok <action> ...

项目路径

所有命令都在项目根目录执行:

cd <PROJECT_ROOT>

初始化

uv sync
python -m playwright install chromium
python -m patchright install chromium

TikTok 和百家号的 legacy uploader 使用 Playwright;其他主线浏览器 uploader 主要使用 Patchright。

命令

登录

TikTok 登录是人工登录模式:命令会打开浏览器,用户在浏览器中完成登录,然后继续被暂停的 Playwright 会话。

uv run mpau tiktok login --account <account_name>

校验 Cookie

uv run mpau tiktok check --account <account_name>

输出 valid 或 invalid。

上传视频

uv run mpau tiktok upload-video \
  --account <account_name> \
  --file <absolute path to video file> \
  --title "Video title" \
  --tags "tag1,tag2" \
  --thumbnail <optional cover image>

定时发布:

uv run mpau tiktok upload-video \
  --account <account_name> \
  --file <absolute path to video file> \
  --title "Video title" \
  --tags "tag1,tag2" \
  --schedule "2026-06-05 18:30"

注意事项

  • 当前 TikTok 仅支持视频上传。
  • uploader 会先把 TikTok Studio 切换到英文界面再上传。
  • --thumbnail 是可选封面参数。
  • Cookie 文件保存在 cookies/tiktok_<account_name>.json。
  • 不要打印、分享或提交 Cookie 文件。
檢視許可證全文(MIT)
MIT License

Copyright (c) 2026 cjccd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.