Install
openclaw skills install douyin-hot-scraper爬取抖音热榜和搜索数据,支持自然语言搜索请求如"搜索一下海鲜视频"、"看看抖音热榜"
openclaw skills install douyin-hot-scraper获取抖音热榜数据和关键词搜索结果。
当用户用自然语言表达搜索意图时,直接调用,无需用户手动指定命令。
| 用户说 | 动作 | 命令 |
|---|---|---|
| 搜索一下海鲜视频 | 搜索 | python3 scripts/scraper.py search --keyword "海鲜" --limit 10 |
| 看看抖音热榜 | 热榜 | python3 scripts/scraper.py hot --limit 20 |
| 找一些关于小龙虾的视频 | 搜索 | python3 scripts/scraper.py search --keyword "小龙虾" --limit 10 |
| 抖音最近什么火 | 热榜 | python3 scripts/scraper.py hot --limit 20 |
| 帮我搜一下美食 | 搜索 | python3 scripts/scraper.py search --keyword "美食" --limit 10 |
--limit;否则默认 10Playwright 和 Chromium 浏览器。首次使用前运行:
pip install playwright && playwright install chromium
# 基本搜索
python3 scripts/scraper.py search --keyword "海鲜" --limit 10
# 仅使用热榜 API(更快,无需浏览器)
python3 scripts/scraper.py search --keyword "海鲜" --method api --limit 10
# 搜索并保存结果
python3 scripts/scraper.py search --keyword "海鲜售卖" --limit 20 --output seafood.json
# 获取热榜
python3 scripts/scraper.py hot --limit 20
# 保存热榜数据
python3 scripts/scraper.py hot --limit 50 --output hot.json
| 方式 | 说明 | 适用场景 |
|---|---|---|
auto(默认) | 先尝试浏览器搜索,失败则回退热榜 API | 通用 |
api | 仅使用热榜 API,按关键词过滤 | 快速获取,无需浏览器 |
browser | 仅使用 Playwright 浏览器 | 需要精确搜索结果 |
⚠️ 抖音网页版搜索需要登录。如果未登录,
auto模式会自动回退到热榜 API。
[
{
"title": "视频标题",
"description": "视频描述",
"author": "作者昵称",
"play_count": 1000000,
"like_count": 50000,
"comment_count": 2000,
"share_count": 1000,
"url": "https://www.douyin.com/video/xxx",
"tags": ["标签1", "标签2"],
"publish_time": "2026-06-08",
"hot_value": 5000000
}
]
https://www.douyin.com/aweme/v1/web/hot/search/list/ — 公开接口,无需登录