← 返回 Skills 市场
kk-kingkong

TikHub API 工具(KK版)

作者 kk.Tang · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
120
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install tikhub-api-skill-kk
功能描述
TikHub API 多平台数据爬取工具,支持抖音/TikTok/B站等。当用户提到:(1) 爬取抖音/TikTok/B站视频或评论;(2) 获取用户信息/粉丝列表;(3) 批量下载无水印视频;(4) 抖音链接转文字(下载→音频→Whisper pipeline);(5) 调用 TikHub API。
安全使用建议
What to check before installing/using: - Confirm how you will provide the TikHub API key. The code expects TIKHUB_API_KEY (env or ~/.openclaw/workspace/.env), but the skill metadata does not declare it — supply the key via environment variables rather than leaving a plaintext .env in your home if possible. - Inspect SKILL.md and scripts for hard-coded paths. There is an example that opens '/Users/kk/.openclaw/workspace/.env' — likely leftover from the author; ensure no unwanted absolute paths are present or being used on your system. - Be aware the skill will download video files to disk and invoke ffmpeg and Whisper (CPU/GPU). Ensure you have the disk, compute capacity, and have installed the required tooling yourself (ffmpeg, whisper packages). requirements.txt lists ffmpeg (not a pip package) and multiple whisper packages — pick the ones you trust and need. - The skill relies on an external MCP (mcporter) server configuration referenced in ~/.openclaw/workspace/config/mcporter.json. If you don't run or trust that server, avoid executing MCP commands; the fallback Python SDK uses the TikHub API directly. - Network destinations: the skill talks to api.tikhub.dev and to the video host URLs it fetches — expected for this functionality. Confirm you are comfortable with calls to those endpoints and potential billing/usage (SKILL.md warns about a small balance and that some endpoints are paid). - Legal/ToS: scraping/downloading platform content may violate service terms or copyrights. Ensure you have the right to download/transcribe the content you target. If you want higher confidence, ask the author to: (1) update registry metadata to declare TIKHUB_API_KEY as a required env var, (2) remove or parameterize hard-coded user paths, and (3) provide clarity about MCP dependency and whether mcporter servers are remote/shared.
功能分析
Type: OpenClaw Skill Name: tikhub-api-skill-kk Version: 1.1.0 The skill bundle contains a shell injection vulnerability in `scripts/tikhub.py` within the `whisper_transcribe` function, which uses `subprocess.run(..., shell=True)` on a command string constructed from potentially unsanitized video IDs or URLs. Additionally, the bundle includes logic in `scripts/tikhub.py` and instructions in `SKILL.md` to programmatically read sensitive API keys from the local environment file (`~/.openclaw/workspace/.env`). While these represent significant security risks (RCE and credential access), they appear to be unintentional flaws or functional requirements of the tool's stated purpose—social media data extraction—rather than intentional malware.
能力评估
Purpose & Capability
The name/description (TikHub API crawler for Douyin/TikTok/Bilibili/etc.) aligns with the provided Python code and SKILL.md which call TikHub endpoints, download videos, fetch comments, and transcribe audio. However the registry metadata declares no required env vars while the code and docs clearly expect a TIKHUB_API_KEY (and optionally TIKHUB_BASE_URL). Also SKILL.md relies on an external tool (mcporter/MCP) and preconfigured MCP servers — that external dependency is not reflected in install metadata.
Instruction Scope
Runtime instructions and code operate within the expected scope (call TikHub API, curl video URLs, run ffmpeg/whisper). They instruct reading the user's workspace config and .env (~/.openclaw/workspace/config/mcporter.json and ~/.openclaw/workspace/.env) to obtain MCP settings and API key — which is necessary for operation but is sensitive. One example snippet hardcodes '/Users/kk/.openclaw/workspace/.env' which is suspicious (likely a leftover from the author's environment) and could cause the agent to attempt reading a specific user's path.
Install Mechanism
There is no automated install spec (instruction-only + included Python scripts). No remote archives or installers are fetched by the skill. A requirements.txt is present (requests, whisper variants, ffmpeg) — installing these is up to the user/environment. This is a low-risk install pattern compared to downloading arbitrary binaries.
Credentials
The skill needs a TikHub API key (TIKHUB_API_KEY) and optionally TIKHUB_BASE_URL — both reasonable and proportionate to its functionality. However, the registry metadata declares no required env vars while the code reads an API key from environment or from ~/.openclaw/workspace/.env. That mismatch is an inconsistency you should verify before use. The code searches ~/.openclaw/workspace/.env automatically, which means a locally stored secret will be read without an explicit registry declaration.
Persistence & Privilege
The skill does not request always:true, does not attempt to modify other skills or system-wide agent settings, and only writes typical output files (downloads, transcripts). It runs subprocesses (curl, ffmpeg, whisper) which is expected for this functionality and not itself a privilege escalation.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tikhub-api-skill-kk
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tikhub-api-skill-kk 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
v6: MCP主方案,支持B站/抖音/TikTok/YouTube等7大平台,SDK备用
v1.0.0
KK定制版:从.env读取API Key,补全抖音链接解析,更新v5调用方式
元数据
Slug tikhub-api-skill-kk
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

TikHub API 工具(KK版) 是什么?

TikHub API 多平台数据爬取工具,支持抖音/TikTok/B站等。当用户提到:(1) 爬取抖音/TikTok/B站视频或评论;(2) 获取用户信息/粉丝列表;(3) 批量下载无水印视频;(4) 抖音链接转文字(下载→音频→Whisper pipeline);(5) 调用 TikHub API。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 120 次。

如何安装 TikHub API 工具(KK版)?

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

TikHub API 工具(KK版) 是免费的吗?

是的,TikHub API 工具(KK版) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

TikHub API 工具(KK版) 支持哪些平台?

TikHub API 工具(KK版) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 TikHub API 工具(KK版)?

由 kk.Tang(@kk-kingkong)开发并维护,当前版本 v1.1.0。

💬 留言讨论