Install
openclaw skills install douyin-searchSearch Douyin (抖音) videos by natural language keywords. Supports phrases like "搜索一下海鲜视频", "帮我找抖音上的猫咪视频", "抖音搜美食教程". Falls back to keyword suggestions when not logged in.
openclaw skills install douyin-search搜索抖音视频,用自然语言就行。
Search Douyin (抖音) for videos by keyword. You say "搜索一下海鲜视频", it finds seafood videos on Douyin.
Supports natural language input — the agent extracts the search intent and converts it to a keyword, no rigid command format needed.
When the user wants to search Douyin, follow these steps:
Parse the user's natural language request into a search keyword:
| User says | Keyword |
|---|---|
| 搜索一下海鲜视频 | 海鲜视频 |
| 帮我找抖音上的猫咪 | 猫咪 |
| 抖音搜美食教程 | 美食教程 |
| douyin search funny cats | funny cats |
| 找一些关于编程的短视频 | 编程 |
If the keyword is ambiguous, use the Douyin suggestion API to refine it (see Step 3).
Run the search script:
python3 scripts/douyin_search.py "<keyword>" --count 10 --json
This uses a persistent browser profile at .browser-profile/ to maintain login state.
If the result says login_required:
python3 scripts/douyin_search.py --login.browser-profile/ — only needed onceIf login is not available, use the Douyin suggestion API for related keywords:
curl -s "https://www.douyin.com/aweme/v1/web/search/sug/?keyword=<url-encoded-keyword>&aid=6383" \
-H "User-Agent: Mozilla/5.0" \
-H "Referer: https://www.douyin.com/"
This returns a sug_list with related search terms. Present these to the user as:
还没登录抖音,无法直接搜视频,但找到以下相关搜索词:
- 吃海鲜视频
- 海鲜视频素材
- 海鲜视频赶海 ... 登录后即可搜索完整结果。需要我帮你登录吗?
Present search results clearly:
🔍 搜索 "海鲜视频" — 共 10 个结果
1. **小明的海鲜日记** — 今天赶海抓到超大海蟹!
❤️ 12.3万 💬 856 ▶️ 89.2万
🔗 https://www.douyin.com/video/7xxx
2. ...
For Discord/WhatsApp (no markdown tables), use the list format above.
If the Playwright script fails or isn't available, you can search using the OpenClaw browser tool directly:
browser action=navigate url=https://www.douyin.com/search/<encoded-keyword>browser action=snapshot — check if results loaded or login is neededbrowser action=screenshot — show the user the search pagedouyin-scraper/
├── SKILL.md ← This file
├── README.md ← Overview
├── skill.json ← Metadata
├── examples.md ← Usage examples
├── scripts/
│ ├── douyin_search.py ← Main search script (Playwright)
│ └── format_results.py ← Result formatter
└── .browser-profile/ ← Persistent browser state (gitignored)
--login flag (requires a display/GUI)