← 返回 Skills 市场
stoxca

Downloader tiktok videos

作者 stx · GitHub ↗ · v1.0.4
cross-platform ⚠ suspicious
592
总下载
0
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install downloader-tiktok-videos
功能描述
Automatically downloads the latest video (or the N most recent) from a public TikTok account using yt-dlp. Use this skill whenever the user mentions TikTok,...
使用说明 (SKILL.md)

Downloader TikTok Videos

Overview

Downloader TikTok Videos downloads the latest video (or multiple videos) from a public TikTok account using yt-dlp. Read this documentation fully before writing any code or running commands.

Prerequisites

This skill requires yt-dlp (and optionally ffmpeg for audio/video merging).

⚠️ The commands below modify your host environment (install packages system-wide). Run them only if yt-dlp is not already installed and you are comfortable doing so.

pip install -U yt-dlp --break-system-packages   # Linux system Python
# or
pip install -U yt-dlp                           # virtualenv / macOS
yt-dlp --version                                # verify install

Operation Types

This skill supports four operation types. Determine which one(s) the user needs:

  1. Quick Download — Download the latest video from an account
  2. Bulk Download — Download the N most recent videos
  3. Metadata Only — Retrieve info/stats without downloading the video
  4. Direct Video URL — Download from a specific video URL

Workflows

1. Quick Download — Latest Video from an Account

When to use: User provides a @username or profile URL

Steps:

  1. Normalize the username (strip @ if present)
  2. Build the profile URL: https://www.tiktok.com/@{username}
  3. Fetch metadata for the latest video (--playlist-items 1 --no-download)
  4. Show the user the video info (title, date, duration)
  5. Download with the optimal command
  6. Confirm success and provide the file path

Command:

yt-dlp \
  --playlist-items 1 \
  --format "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" \
  --merge-output-format mp4 \
  --output "./%(uploader_id)s_%(upload_date)s_%(id)s.%(ext)s" \
  "https://www.tiktok.com/@{username}"

Verify the result:

ls -lh ./*.mp4

2. Bulk Download — N Most Recent Videos

When to use: User wants multiple videos

Steps:

  1. Ask how many videos (if not specified, default = 5)
  2. Build the command with --playlist-items 1-N
  3. Add --download-archive to avoid duplicates
  4. Download with progress output
  5. List downloaded files

Command:

yt-dlp \
  --playlist-items 1-{N} \
  --format "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" \
  --merge-output-format mp4 \
  --download-archive ./tiktok_archive.txt \
  --output "./%(uploader_id)s/%(upload_date)s_%(id)s.%(ext)s" \
  "https://www.tiktok.com/@{username}"

3. Metadata Only

When to use: User wants video info without downloading

Read: references/metadata.md for all available fields and the full command

Quick command:

yt-dlp \
  --playlist-items 1 \
  --skip-download \
  --write-info-json \
  --print "%(uploader_id)s | %(upload_date)s | %(duration)ss | %(view_count)s views | %(title)s" \
  "https://www.tiktok.com/@{username}"

4. Direct Video URL

When to use: User provides a direct video URL

Command:

yt-dlp \
  --format "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" \
  --merge-output-format mp4 \
  --output "./%(uploader_id)s_%(id)s.%(ext)s" \
  "{video_url}"

Common Errors

Error Cause Fix
HTTP Error 403 TikTok rate limiting Add --sleep-interval 3 --max-sleep-interval 6
Unable to extract Outdated yt-dlp pip install -U yt-dlp --break-system-packages
Private account Private account Use --cookies-from-browser chrome if logged in ⚠️ exports session cookies — keep them private
No video formats Geo-restriction Add --geo-bypass
Sign in required Restricted content Provide cookies via --cookies cookies.txt ⚠️ treat this file like a password
Merge requires ffmpeg ffmpeg missing apt-get install ffmpeg -y

⚠️ Cookie security note: Browser cookies exported via --cookies-from-browser or cookies.txt contain active session tokens. Never share these files, commit them to version control, or pass them to untrusted scripts. Delete them after use if no longer needed.

Username Normalization

# Accepts all these formats:
# @myaccount  →  myaccount
# myaccount   →  myaccount
# https://www.tiktok.com/@myaccount  →  myaccount

def normalize(input_str):
    if "tiktok.com/@" in input_str:
        return input_str.split("tiktok.com/@")[-1].split("/")[0]
    return input_str.lstrip("@").strip()

Reference Files

Load these references as needed:

references/metadata.md

  • When: Fetching metadata, working with JSON fields
  • Contains: All available yt-dlp fields, print format examples, JSON export

references/advanced.md

  • When: Watermark removal, cookies, proxy, custom headers
  • Contains: Advanced techniques, restriction bypass, full yt-dlp options

KBLICENSE.txt

  • When: Questions about usage rights or Terms of Service
  • Contains: Usage conditions, permitted and prohibited uses

Output Guidelines

  • Always display metadata before downloading (title, date, duration)
  • Confirm the downloaded file path
  • Show the final file size
  • On error, propose the fix directly

Example Queries

Quick download:

  • "Download the latest video from @someaccount"
  • "Get the latest TikTok post from myaccount"
  • "Download the last video from https://www.tiktok.com/@user"

Bulk download:

  • "Download the 5 latest videos from @user"
  • "Get the last 10 videos from @account"

Metadata:

  • "Give me the info on the latest video from @user"
  • "What is the title and date of the last post from @account"

Direct URL:

安全使用建议
This skill appears to do what it says: it wraps yt-dlp to fetch metadata and download TikTok videos. Before installing/using it: (1) review the Python script (it only shells out to yt-dlp) and run it in a sandbox/virtualenv/container if you want extra isolation; (2) install yt-dlp/ffmpeg from official package sources, not random URLs; (3) never share exported cookies or commit cookies.txt — using --cookies-from-browser exports active session tokens that are sensitive; (4) be aware of legal/ToS considerations when downloading content and avoid automating downloads from private accounts unless you control them; (5) avoid third-party cookie-exporting extensions and prefer built-in browser methods. If you want greater assurance, run the script without supplying cookies first and verify behavior on public accounts.
功能分析
Type: OpenClaw Skill Name: downloader-tiktok-videos Version: 1.0.4 The skill is classified as suspicious due to its instructions for system-wide package installations (`pip install --break-system-packages`, `apt-get install ffmpeg -y`) in `SKILL.md` and `advanced.md`, which modify the host environment. Furthermore, the skill explicitly handles and provides commands for exporting sensitive browser session cookies (`--cookies-from-browser`) in `download_latest.py` and `advanced.md`. While the script includes warnings about cookie security and uses `subprocess.run` securely to prevent direct shell injection, exposing these capabilities to an AI agent, even with benign intent, presents a significant risk for misuse via prompt injection or unintended data exposure.
能力评估
Purpose & Capability
Name/description match the included artifacts: SKILL.md, advanced.md, and download_latest.py all implement TikTok video metadata/download functionality using yt-dlp and optionally ffmpeg. Declared dependencies (yt-dlp, optional ffmpeg) are proportional to the task.
Instruction Scope
Runtime instructions and the script only call yt-dlp/ffmpeg and perform local file operations. The docs explicitly instruct installing yt-dlp/ffmpeg system-wide (modifies host) and describe exporting browser cookies or using --cookies-from-browser; these actions involve sensitive session tokens and require user caution. This is expected for accessing restricted content but should be treated as sensitive.
Install Mechanism
There is no install spec that downloads arbitrary code; the skill is instruction-only plus a Python wrapper. The only installation advice is to pip/brew/apt install yt-dlp or ffmpeg (standard package sources). No download-from-personal-server or extract-from-URL steps are present.
Credentials
The skill requests no environment variables or credentials. It documents handling of cookies (user-provided cookie files or cookies-from-browser) which are sensitive but are user-supplied and not requested via env vars. No unrelated secrets are required.
Persistence & Privilege
always is false and the skill does not request persistent agent privileges or modify other skills/configs. It runs as an on-demand tool wrapping yt-dlp and does not attempt to persist credentials or change system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install downloader-tiktok-videos
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /downloader-tiktok-videos 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
- Removed KBLICENSE.txt and metadata.md from the skill package. - SKILL.md updated with clearer prerequisites, highlighting that yt-dlp installation can affect the host environment. - No functional changes to download commands, workflows, or error handling. - Documentation remains focused on TikTok downloads and metadata extraction via yt-dlp.
v1.0.3
[1.0.3] Fixed: _meta.json — Added missing dependencies block declaring yt-dlp as required and ffmpeg as optional. The skill was previously silent about these runtime requirements. SKILL.md — Replaced all hardcoded /home/claude/... output paths with relative ./... paths. Added inline ⚠️ warnings on cookie-related error fixes, plus a dedicated security note block explaining that exported cookies contain active session tokens. references/metadata.md — Removed buggy --print "%()j" template (not a valid yt-dlp format string). Replaced with the correct --dump-json flag for stdout output and --write-info-json for file output. Fixed hardcoded paths. references/advanced.md — Replaced all hardcoded /home/claude/... paths with relative ./... paths. scripts/download_latest.py — Three fixes: --print "%()j" replaced with --dump-json (correct yt-dlp flag for per-video JSON output) Default output directory changed from /home/claude to . (current working directory); exposed as --output CLI argument --cookies and --cookies-from-browser options now print an explicit security warning at runtime
v1.0.2
- Refined documentation language for clarity and consistency. - Updated operation types: "Multiple Download" renamed to "Bulk Download"; "Direct Video" to "Direct Video URL". - Reorganized and clarified workflows for each operation type. - Revised error handling and reference file descriptions for better usability. - Enhanced output and example query guidelines.
v1.0.1
- Improved skill description and documentation for clarity and comprehensive usage guidance. - Explicitly outlined four operation types: single/multiple video download, metadata-only retrieval, and direct video URL support. - Added detailed workflows and bash commands for each operation, including output verification and file management. - Documented troubleshooting steps for common errors with clear solutions. - Included username normalization and example queries to enhance usability. - Referenced additional documentation for advanced usage and metadata retrieval.
元数据
Slug downloader-tiktok-videos
版本 1.0.4
许可证
累计安装 1
当前安装数 1
历史版本数 4
常见问题

Downloader tiktok videos 是什么?

Automatically downloads the latest video (or the N most recent) from a public TikTok account using yt-dlp. Use this skill whenever the user mentions TikTok,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 592 次。

如何安装 Downloader tiktok videos?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install downloader-tiktok-videos」即可一键安装,无需额外配置。

Downloader tiktok videos 是免费的吗?

是的,Downloader tiktok videos 完全免费(开源免费),可自由下载、安装和使用。

Downloader tiktok videos 支持哪些平台?

Downloader tiktok videos 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Downloader tiktok videos?

由 stx(@stoxca)开发并维护,当前版本 v1.0.4。

💬 留言讨论