← 返回 Skills 市场
terrycarter1985

抖音爆款爬虫 Pro

作者 terrycarter1985 · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
42
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install douyin-scraper-pro
功能描述
爬取抖音爆款视频和文案数据,支持自然语言搜索请求。使用 Playwright 自动化浏览器操作,支持搜索关键词、获取热榜、提取视频信息和文案。
使用说明 (SKILL.md)

抖音爆款爬虫 Skill

Agent 指南:自然语言解析

当用户用自然语言发请求时,按以下规则提取参数并执行对应命令:

请求类型识别

用户说法示例 类型 命令
搜索一下海鲜视频 / 找一些海鲜售卖的视频 / 帮我搜海鲜 search search --keyword "\x3C关键词>"
看看抖音热榜 / 热榜有什么 / 抖音热搜 hot hot
分析这个视频链接 https://v.douyin.com/xxx analyze analyze --url "\x3Curl>"

关键词提取规则

  1. 去掉无意义动词/助词:「搜索一下」「帮我找」「看看」「有没有」
  2. 提取核心搜索词:「搜索一下海鲜视频」→ keyword=海鲜
  3. 如果用户指定数量则用之,否则默认 --limit 10
  4. 如果用户指定输出文件则用之,否则默认 stdout

执行方式

优先使用 Python 脚本(更稳定的数据提取):

cd {{SKILL_DIR}} && bash scripts/run.sh search --keyword "海鲜" --limit 10

如果 Python 环境不可用,回退到 Node.js:

cd {{SKILL_DIR}} && node scripts/douyin_scraper.js search "海鲜" 10

输出解读

脚本输出 JSON 数组,每个元素包含:

  • title — 视频标题
  • description — 视频描述/文案
  • author — 作者昵称
  • play_count / like_count / comment_count / share_count — 互动数据
  • url — 视频链接
  • tags — 标签列表
  • publish_time — 发布时间

Agent 应将结果整理为用户友好的格式呈现,而非直接 dump JSON。

完整命令参考

搜索

# Python
bash scripts/run.sh search --keyword "海鲜" --limit 10
bash scripts/run.sh search --keyword "海鲜售卖" --limit 20 --output result.json

# Node.js
node scripts/douyin_scraper.js search "海鲜" 10

热榜

# Python
bash scripts/run.sh hot --limit 20
bash scripts/run.sh hot --category "美食" --limit 20

# Node.js
node scripts/douyin_scraper.js hot 20

分析视频链接

bash scripts/run.sh analyze --url "https://v.douyin.com/xxxxx/"

安装

首次使用前需安装依赖:

cd {{SKILL_DIR}}
pip install playwright
playwright install chromium

或使用 Node.js:

cd {{SKILL_DIR}}
npm install
npx playwright install chromium

注意事项

  • 遵守抖音平台规则,合理使用,避免频繁请求
  • 请求之间有默认 2 秒延时
  • 数据仅供学习研究使用
  • 不要登录账号,避免风控
  • 注意 IP 限制风险
安全使用建议
Install only if you are comfortable with a skill that can run Playwright browser automation, install local dependencies, and write export files. Use it only for Douyin URLs, avoid logging into accounts, review output paths before saving, and consider adding URL allowlisting before using the analyze command.
能力评估
Purpose & Capability
Search, hot-list scraping, metadata extraction, Playwright use, dependency installation, and optional exports fit the stated Douyin scraper purpose, but the Python analyze command accepts and opens any URL instead of limiting itself to Douyin video links.
Instruction Scope
Natural-language triggers include broad phrases such as generic search and link analysis, and there is no confirmation or domain validation before launching browser automation for a supplied URL.
Install Mechanism
The install flow is disclosed and mostly conventional for Playwright: it creates a virtual environment, installs Playwright, installs Chromium, optionally runs npm install, and includes a separate Docker helper. These are setup side effects users should expect to review.
Credentials
Browser automation is expected for scraping Douyin, but the scripts launch Chromium with no-sandbox flags and the analyze command can navigate to non-Douyin URLs, making the network/browser capability broader than necessary.
Persistence & Privilege
The skill creates a local venv, generated run script, Playwright browser files, and optional output files. It does not show credential access, background persistence, account login, or automatic exfiltration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install douyin-scraper-pro
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /douyin-scraper-pro 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.0
v2: 真实数据提取(移动端 Playwright)、自然语言搜索支持、analyze 子命令、过滤广告
元数据
Slug douyin-scraper-pro
版本 2.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

抖音爆款爬虫 Pro 是什么?

爬取抖音爆款视频和文案数据,支持自然语言搜索请求。使用 Playwright 自动化浏览器操作,支持搜索关键词、获取热榜、提取视频信息和文案。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 42 次。

如何安装 抖音爆款爬虫 Pro?

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

抖音爆款爬虫 Pro 是免费的吗?

是的,抖音爆款爬虫 Pro 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

抖音爆款爬虫 Pro 支持哪些平台?

抖音爆款爬虫 Pro 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 抖音爆款爬虫 Pro?

由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v2.0.0。

💬 留言讨论