Tooluck logoTooluck
SKILL.md

tiktok-upload

Agent skill fromdreammis/social-auto-upload

使用仓库现有 Patchright/Playwright Chrome 上传器登录并发布 TikTok 视频。Use when 用户要发布 TikTok 视频,且当前环境可访问本仓库及其本地 Chrome 配置。

How to install tiktok-upload

install tiktok-upload
# install the social-auto-upload pack with the skills CLI
npx skills add dreammis/social-auto-upload

# or add only this skill to Claude Code: copy the folder

skills/tiktok-upload/

# into

~/.claude/skills/tiktok-upload/ (all projects)

.claude/skills/tiktok-upload/ (one project)

skills/tiktok-upload/SKILL.md

MITFull file
1# TikTok 视频发布
2
3TikTok 当前没有 `sau tiktok` 命令。使用仓库的 `uploader/tk_uploader/main_chrome.py`,不能虚构 CLI 参数。运行前确认仓库依赖、`conf.py` 中的 Chrome 配置及用户提供的视频路径。
4
5账号会话存放在 `cookies/tk_uploader/account.json`。首次登录可参考 `examples/get_tk_cookie.py`,在 TikTok 页面由用户本人完成登录。不要读取、复制或提交 cookie 文件。
6
7单条视频优先按下面的仓库 API 流程执行,先用 `publish_date=0` 表示立即发布:
8
9```python
10import asyncio
11from pathlib import Path
12from conf import BASE_DIR
13from uploader.tk_uploader.main_chrome import TiktokVideo, tiktok_setup
14
15account_file = Path(BASE_DIR) / "cookies" / "tk_uploader" / "account.json"
16video_file = Path(BASE_DIR) / "videos" / "demo.mp4"
17asyncio.run(tiktok_setup(str(account_file), handle=True))
18app = TiktokVideo("标题", str(video_file), ["标签"], 0, str(account_file))
19asyncio.run(app.main())
20```
21
22`TiktokVideo` 没有独立简介参数。定时发布需传入明确的 `datetime`,不要自行推算时间。仓库中的 `examples/upload_video_to_tiktok.py` 会批量处理目录下的 MP4、自动从文件提取标题/标签,并安排次日 16:00 发布;除非用户明确要求这些行为,不要直接运行该脚本。
23
24每次发布前让用户确认账号、单条视频、标题、标签及立即/定时方式。页面布局或登录状态不符合预期时停止并报告;只有平台页面确认提交后才报告成功,未知结果先核查 TikTok Studio,不能直接重发。

Excerpt shown under the repository's MIT license.

More skills in social-auto-upload

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates