Install
openclaw skills install tiktok-bulk-publisher-testAutomate bulk uploading and publishing of TikTok videos with customizable titles, privacy, comment/duet/stitch controls, and upload status checks.
openclaw skills install tiktok-bulk-publisher-testTikTok批量视频发布技能,实现自动化上传和发布TikTok视频内容。支持以下功能:
video.publish 和 user.info.basic Scopeexport TIKTOK_CLIENT_KEY="your_client_key"
export TIKTOK_CLIENT_SECRET="your_client_secret"
export TIKTOK_ACCESS_TOKEN="your_access_token"
python tiktok_publisher.py --video /path/to/video.mp4 --title "视频标题" --privacy PUBLIC_TO_EVERYONE
from tiktok_publisher import TikTokPublisher
publisher = TikTokPublisher(client_key, client_secret, access_token)
result = publisher.upload_video(
video_path="/path/to/video.mp4",
title="视频标题",
privacy_level="PUBLIC_TO_EVERYONE",
disable_comment=False,
disable_duet=False,
disable_stitch=False
)
if result['success']:
print(f"发布成功: {result['video_url']}")
else:
print(f"发布失败: {result['error']}")
常见错误代码:
missing_scope: 缺少必要的API权限invalid_token: 访问令牌无效或过期video_too_large: 视频文件超过大小限制invalid_video_format: 视频格式不支持