SkillsGrove
SkillsGrove/숏폼 영상 및 크리에이터/dreammis/social-auto-upload/tiktok-upload

tiktok-upload

설치

$npx skills add https://github.com/dreammis/social-auto-upload --skill tiktok-upload
$git clone --depth 1 https://github.com/dreammis/social-auto-upload.git /tmp/social-auto-upload && mkdir -p ~/.claude/skills && cp -r /tmp/social-auto-upload/skills/tiktok-upload ~/.claude/skills/tiktok-upload
이 Agent Skill을 설치해 주세요: https://github.com/dreammis/social-auto-upload/tree/ea113097bd14956975129f0008ecccd221d02218/skills/tiktok-upload — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MIT使用仓库现有 Patchright/Playwright Chrome 上传器登录并发布 TikTok 视频。Use when 用户要发布 TikTok 视频,且当前环境可访问本仓库及其本地 Chrome 配置。
아래 SKILL.md는 dreammis/social-auto-upload(커밋 ea11309)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2023 dreammis. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

TikTok 视频发布

TikTok 当前没有 sau tiktok 命令。使用仓库的 uploader/tk_uploader/main_chrome.py,不能虚构 CLI 参数。运行前确认仓库依赖、conf.py 中的 Chrome 配置及用户提供的视频路径。

账号会话存放在 cookies/tk_uploader/account.json。首次登录可参考 examples/get_tk_cookie.py,在 TikTok 页面由用户本人完成登录。不要读取、复制或提交 cookie 文件。

单条视频优先按下面的仓库 API 流程执行,先用 publish_date=0 表示立即发布:

import asyncio
from pathlib import Path
from conf import BASE_DIR
from uploader.tk_uploader.main_chrome import TiktokVideo, tiktok_setup

account_file = Path(BASE_DIR) / "cookies" / "tk_uploader" / "account.json"
video_file = Path(BASE_DIR) / "videos" / "demo.mp4"
asyncio.run(tiktok_setup(str(account_file), handle=True))
app = TiktokVideo("标题", str(video_file), ["标签"], 0, str(account_file))
asyncio.run(app.main())

TiktokVideo 没有独立简介参数。定时发布需传入明确的 datetime,不要自行推算时间。仓库中的 examples/upload_video_to_tiktok.py 会批量处理目录下的 MP4、自动从文件提取标题/标签,并安排次日 16:00 发布;除非用户明确要求这些行为,不要直接运行该脚本。

每次发布前让用户确认账号、单条视频、标题、标签及立即/定时方式。页面布局或登录状态不符合预期时停止并报告;只有平台页面确认提交后才报告成功,未知结果先核查 TikTok Studio,不能直接重发。

라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2023 dreammis

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.