← 返回 Skills 市场
Douyin NLP Search
作者
terrycarter1985
· GitHub ↗
· v1.0.0
· MIT-0
36
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install douyin-nlp-search
功能描述
抖音视频内容搜索和爬取工具,支持自然语言查询如"搜索一下海鲜视频"、"找5个最热猫咪搞笑视频"。 当用户需要搜索抖音视频内容、查找短视频、爬取抖音数据时使用此技能。 支持中文自然语言解析,可以直接理解用户的搜索意图并提取关键词和过滤条件。
使用说明 (SKILL.md)
Douyin Scraper - 抖音搜索爬虫
支持自然语言搜索抖音视频内容的工具技能。
功能特点
- ✅ 自然语言理解: 直接理解中文搜索意图,如"搜索一下海鲜视频"
- ✅ 智能解析: 自动提取关键词、数量、排序方式
- ✅ 多种输出: 支持文本格式化和 JSON 输出
- ✅ 可扩展: 可以对接浏览器自动化或抖音开放平台 API
触发场景
当用户说以下内容时使用此技能:
- "搜索一下XX视频"
- "找一下XX内容"
- "帮我搜抖音上的XX"
- "抖音上有什么XX相关的"
- "爬取抖音XX视频"
- 任何包含抖音搜索/查找意图的自然语言查询
使用方法
1. 解析用户查询
首先使用内置的自然语言解析器理解用户意图:
from scripts.search_douyin import parse_natural_language
parsed = parse_natural_language("搜索一下海鲜视频")
# 返回: {"keyword": "海鲜", "sort": "general", "count": 10, ...}
2. 执行搜索
from scripts.search_douyin import search_douyin, format_results
results = search_douyin(keyword="海鲜", count=5)
print(format_results(results))
3. 命令行直接使用
# 自然语言搜索
python scripts/search_douyin.py "搜索一下海鲜视频"
# 找5个最热猫咪视频
python scripts/search_douyin.py "找5个最热猫咪搞笑视频"
# JSON输出
python scripts/search_douyin.py "海鲜视频" --json
支持的查询示例
| 用户输入 | 解析结果 |
|---|---|
| 搜索一下海鲜视频 | keyword=海鲜, count=10, sort=general |
| 找5个最新猫咪视频 | keyword=猫咪, count=5, sort=latest |
| 帮我搜最热美食探店视频 | keyword=美食探店, sort=most_liked |
| 查找健身教程 | keyword=健身教程 |
扩展实现方式
当前版本包含模拟搜索结果。如需实现真实爬取,可以:
方案 A: 浏览器自动化 (推荐)
结合 agent-browser skill 实现真实浏览器搜索:
# 1. 使用 agent-browser 打开抖音搜索页
# 2. 输入关键词并等待结果
# 3. 提取视频标题、作者、点赞数等信息
方案 B: 抖音开放平台 API
对接抖音开放平台的搜索接口,需要申请 API Key。
方案 C: 第三方数据接口
使用第三方抖音数据服务提供商。
输出字段说明
每个视频返回:
title: 视频标题author: 作者昵称likes: 点赞数comments: 评论数shares: 分享数duration: 视频时长url: 视频链接
执行流程
- 识别触发词: 用户查询包含"抖音"、"搜索"、"找"、"视频"等关键词
- 解析意图: 使用
parse_natural_language()解析自然语言 - 执行搜索: 调用
search_douyin()获取结果 - 格式化输出: 使用
format_results()输出美观结果 - 提示扩展: 提醒用户可以配置真实的爬取方案
注意事项
- 遵守抖音平台的 robots.txt 和使用条款
- 合理控制请求频率,避免对服务器造成压力
- 仅供学习和研究使用,请勿用于商业用途
- 大规模爬取建议使用官方开放平台接口
安全使用建议
Safe to treat as a mock Douyin search/parsing helper. Before relying on results or enabling real scraping/API access, confirm the data source, approve any browser automation, and protect any API keys you add.
功能分析
Type: OpenClaw Skill
Name: douyin-nlp-search
Version: 1.0.0
The skill bundle is a functional template for a Douyin (TikTok China) search tool that uses natural language processing to extract search parameters. The core logic in `scripts/search_douyin.py` uses regex for parsing and provides mock data results, with no actual network exfiltration or dangerous execution (like eval or os.system). The documentation in `SKILL.md` and `README.md` is transparent about its current mock implementation and intended use cases.
能力标签
能力评估
Purpose & Capability
The Douyin search/scraping purpose is coherent with the files provided, but the current implementation returns mock/hard-coded results rather than live Douyin data; the artifacts disclose this.
Instruction Scope
The skill is triggered for Douyin search requests and suggests optional browser automation or API extensions; this is purpose-aligned, but users should approve any move from mock results to real scraping.
Install Mechanism
There is no install script or automatic dependency installation. The included Python script is small and does not perform hidden file writes, shell execution, or live network requests.
Credentials
The registry declares no required credentials, while capability signals mention sensitive credentials and the docs mention an optional Douyin API key for future real API integration. Current code does not use secrets.
Persistence & Privilege
No persistence, background worker, privileged path writes, or ongoing autonomous behavior is shown in the artifacts.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install douyin-nlp-search - 安装完成后,直接呼叫该 Skill 的名称或使用
/douyin-nlp-search触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Douyin Scraper skill.
- Supports natural language parsing for Chinese Douyin video content search.
- Automatically extracts keywords, quantity, and sort order from user queries.
- Provides both formatted text and JSON output.
- Triggers on user requests for Douyin video/content search.
- Includes extensible design with support for browser automation and Douyin API integration.
- Returns key video info: title, author, likes, comments, shares, duration, and URL.
元数据
常见问题
Douyin NLP Search 是什么?
抖音视频内容搜索和爬取工具,支持自然语言查询如"搜索一下海鲜视频"、"找5个最热猫咪搞笑视频"。 当用户需要搜索抖音视频内容、查找短视频、爬取抖音数据时使用此技能。 支持中文自然语言解析,可以直接理解用户的搜索意图并提取关键词和过滤条件。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 36 次。
如何安装 Douyin NLP Search?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install douyin-nlp-search」即可一键安装,无需额外配置。
Douyin NLP Search 是免费的吗?
是的,Douyin NLP Search 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Douyin NLP Search 支持哪些平台?
Douyin NLP Search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Douyin NLP Search?
由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v1.0.0。
推荐 Skills