Li Wei

TikTok Uploader

AI 智慧體v0.1.0
作者:Li Wei更新於 2026-05-11tiktok-uploader@clawhub_xmuweili/tiktok-uploader
任務自動化#Browser Automation#Batch#Schedule

據 AlphaMoat 統計,截至 2026-09,TikTok Uploader 累計下載 3,277 次、獲 6 個星標,在全部 5,078 個 AI 技能中排名第 3,466 位,在「AI 智慧體」分類(969 個)中排名第 712 位。

累計安裝
101
累計下載
3277
星標
6
全站排名
#3,466
全站前 69% · 「AI 智慧體」前 74%
平台累計安裝累計下載星標評論
ClawHub ↗10130755-
SkillHub ↗10032776—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

流程支援透過 cookie 檔案、session ID 或 cookie 列表認證,並可設定文案、可見範圍和釋出時間。Cookie 與 session ID 可授予帳戶訪問權,應像密碼一樣保護;批次釋出前應檢查影片、文案、可見範圍和時間。該方案依賴 TikTok 網頁介面,並非官方 API,介面變化或頻繁上傳可能導致失敗或限流。

資料釋出於 2026-10-29

可以用來做什麼

  • 用瀏覽器自動化上傳單個影片。
  • 規劃影片釋出時間或批次提交影片。
  • 掃描目錄並篩選可上傳的影片檔案。

什麼時候用

  • 需要透過 TikTok 網頁上傳或安排影片釋出時。
  • 需要組織多條影片及各自文案、可見範圍或釋出時間時。
  • 處理 cookie/session 憑據、批次釋出或遇到限流及網頁選擇器錯誤時,需要先複核憑據與釋出設定並謹慎處理。

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

概述這個工具的上傳、安排時間和批次處理能力,並說明其認證憑據風險。
為一組影片擬定釋出前檢查清單,覆蓋檔案、文案、可見範圍、時間和限流風險。

月度資料趨勢

累計下載3277
1428242134142026-03 · 累計下載 15652026-05 · 累計下載 24572026-06 · 累計下載 26362026-07 · 累計下載 28952026-08 · 累計下載 30172026-09 · 累計下載 327726-0326-09
星標6
4562026-03 · 星標 42026-05 · 星標 52026-06 · 星標 52026-07 · 星標 62026-08 · 星標 62026-09 · 星標 626-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093277—6
2026-083017+4.2%6
2026-072895+9.8%6
2026-062636+7.3%5
2026-052457—5
2026-031565—4

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

4.4 KB · ClawHub v0.1.0
---
name: tiktok-uploader
description: "Upload, schedule, and batch-manage TikTok videos via browser automation. Use when: user wants to upload a video to TikTok, schedule a TikTok post, batch upload multiple TikTok videos, or scan a directory for uploadable videos. NOT for: TikTok analytics, downloading videos, or managing comments/followers."
homepage: https://github.com/wkaisertexas/tiktok-uploader
user-invocable: true
metadata: {"openclaw":{"emoji":"🎬","requires":{"bins":["python3","playwright"],"env":[]},"install":[{"id":"pip","kind":"pip","package":"tiktok-uploader","bins":["tiktok-uploader"],"label":"Install tiktok-uploader (pip)"},{"id":"playwright","kind":"pip","package":"playwright","bins":["playwright"],"label":"Install Playwright"}]}}
---

# TikTok Video Uploader
展開全部(共 121 行)
Upload, schedule, and batch-manage TikTok videos using the `tiktok-uploader` Python library (Playwright-based browser automation wrapping TikTok's web upload page).

## Setup

```bash
pip install tiktok-uploader
playwright install
```

## Authentication

The user **must** provide one of these. Ask if not yet configured:

| Method | How to get it |
|---|---|
| **Cookie file** (recommended) | Export `cookies.txt` from browser using the "Get cookies.txt LOCALLY" extension. |
| **Session ID** | DevTools → Application → Cookies → `.tiktok.com` → copy `sessionid` value. |
| **Cookie list** | List of dicts: `[{name, value, domain, path}]`. |

Session cookies expire — if uploads fail with auth errors, the user needs fresh cookies.

## Operations

### Upload a single video

```python
from tiktok_uploader.upload import TikTokUploader

with TikTokUploader(cookies="cookies.txt", headless=True) as uploader:
    success = uploader.upload_video(
        filename="video.mp4",
        description="Check this out #fyp #viral @friend ",
        visibility="everyone",   # "everyone" | "friends" | "only_you"
        comment=True,
        stitch=True,
        duet=True,
        cover="thumbnail.png",   # optional
    )
    print("Uploaded!" if success else "Failed.")
```

### Schedule a video

```python
from datetime import datetime, timezone

with TikTokUploader(sessionid="abc123...", headless=True) as uploader:
    uploader.upload_video(
        filename="video.mp4",
        description="Dropping soon! #scheduled ",
        schedule=datetime(2026, 3, 10, 14, 30, tzinfo=timezone.utc),
    )
```

Rules: must be 20 min – 10 days in the future; minutes are rounded to nearest 5.

### Batch upload

```python
videos = [
    {"path": "vid1.mp4", "description": "First #batch "},
    {"path": "vid2.mp4", "description": "Second", "schedule": datetime(2026, 3, 10, 15, 0, tzinfo=timezone.utc)},
    {"path": "vid3.mp4", "description": "Third", "visibility": "friends"},
]

with TikTokUploader(cookies="cookies.txt", headless=True) as uploader:
    failed = uploader.upload_videos(videos)
    if failed:
        print(f"{len(failed)} videos failed")
```

### Using the wrapper module

This skill ships a convenience wrapper at `scripts/tiktok_manager.py`:

```python
from scripts.tiktok_manager import TikTokManager

mgr = TikTokManager(cookies="~/cookies.txt")
# Upload
mgr.upload("video.mp4", description="Hello TikTok! #fyp ")
# Schedule
mgr.upload("video.mp4", description="Scheduled!", schedule="2026-03-10T14:30")
# Batch
mgr.upload_batch([
    {"path": "v1.mp4", "description": "First"},
    {"path": "v2.mp4", "description": "Second", "schedule": "2026-03-10T15:00"},
])
# Scan directory for uploadable videos
videos = TikTokManager.scan_videos("~/Videos/tiktok", recursive=True)
```

## Important Notes

- **Hashtags & @mentions**: Include in description, each tag followed by a space. Verify they exist.
- **Description limit**: ~150 characters.
- **Rate limiting**: TikTok throttles after many uploads. Space them out; wait hours if throttled.
- **Headless mode**: Set `headless=False` to watch the browser for debugging.
- **Proxy**: Pass `proxy={"host": "...", "port": "..."}` — Chrome only.
- **Supported formats**: .mp4, .mov, .avi, .wmv, .flv, .webm, .mkv, .m4v, .3gp, .3g2, .gif
- **Fragility**: Browser automation, not an official API. TikTok UI changes can break it.

## Troubleshooting

| Problem | Fix |
|---|---|
| Auth/login error | Cookies expired → export fresh cookies.txt |
| Upload hangs | Try `headless=False` to see what's happening |
| Throttled/rate limited | Wait a few hours between batches |
| Selector errors | tiktok-uploader may need an update (`pip install -U tiktok-uploader`) |

「AI 智慧體」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。