Douyin keyword collection tool
Feature Overview
This skill automatically accesses the Douyin homepage through the browser, enters keywords in the search bar and collects relevant keyword suggestions in the automatic prompt box. No API key required, completely browser-based automation.
Triggers
This skill is triggered when the user mentions any of the following keywords:
- - 抖音关键词
- 收集抖音关键词
- 抖音搜索建议
- 抖音热门词
- 抖音 SEO
- 抖音话题
- Douyin keywords
- Collect Douyin keywords
- Douyin search suggestions
- Douyin hot words
- Douyin SEO
- Douyin topics
Usage Scenarios
- - Douyin SEO Keyword Research
- Content creation inspiration collection
- Trending topic trend analysis
- Competitive keyword research
- Short video topic selection planning
Operation process
1. Launch the browser
Use the browser tool's start or snapshot action to launch the browser.
2. Visit the Douyin homepage
Navigate to the official website of Douyin:
CODEBLOCK0
3. Check and close the login pop-up
Use the snapshot action of the browser tool to get a page element reference and check for a login pop-up.
If there is a login pop-up (look for a close button, usually an img or button element), use the act action to click close:
CODEBLOCK1
4. Locate the search bar
Use the snapshot action of the browser tool to get a page element reference and find the search bar input box (textbox type, description contains 'search').
5. Enter a keyword
Using the act action of the browser tool, select the type type and enter your target keyword in the search bar:
CODEBLOCK2
6. Wait for the prompt box to appear
Wait 1-2 seconds for the auto prompt box to load:
CODEBLOCK3
7. Collect automated prompts
Use the snapshot action to get a list of keywords in the prompt box, looking for the keyword text contained in the list or generic element.
8. Organize the output
Organize the collected keywords into a list format and output them to users.
Example of Browser Automation Commands
Launch your browser and access Douyin
CODEBLOCK4
Get a snapshot of the page (get an element reference)
CODEBLOCK5
Close the login pop-up (if present)
Look for the close button in the pop-up window (usually the img or button element, near the top-right corner of the pop-up), and click:
CODEBLOCK6
Enter keywords in the search bar
CODEBLOCK7
Wait for the prompt box to load
CODEBLOCK8
Get the content of the prompt box
CODEBLOCK9
Considerations
- 1. Login pop-up processing: After accessing the Douyin homepage, a login box may pop up, and you need to click the close button (usually the X icon in the upper right corner of the pop-up window) before proceeding.
- Login Status: Some search functions may require login. If you still cannot get the prompt after closing the pop-up window, it is recommended that you manually scan the QR code to log in.
- Anti-crawler mechanism: Douyin may have an anti-crawler mechanism, and you need to add appropriate delays when operating to avoid triggering risk control.
- Element References: Use
refs=aria to obtain stable element references to ensure operational accuracy. - Waiting Time: After entering the keyword, wait 1-2 seconds for the automatic prompt box to load.
- Mobile adaptation: Douyin may have different interfaces between mobile and desktop, and it is recommended to use the desktop mode.
Output Format
CODEBLOCK10
抖音关键词收集工具
功能概述
该技能通过浏览器自动访问抖音首页,在搜索栏输入关键词并收集自动提示框中的相关关键词建议。无需API密钥,完全基于浏览器自动化。
触发条件
当用户提及以下任一关键词时触发此技能:
- - 抖音关键词
- 收集抖音关键词
- 抖音搜索建议
- 抖音热门词
- 抖音 SEO
- 抖音话题
- Douyin keywords
- Collect Douyin keywords
- Douyin search suggestions
- Douyin hot words
- Douyin SEO
- Douyin topics
使用场景
- - 抖音SEO关键词研究
- 内容创作灵感收集
- 热门话题趋势分析
- 竞品关键词研究
- 短视频选题策划
操作流程
1. 启动浏览器
使用browser工具的start或snapshot操作启动浏览器。
2. 访问抖音首页
导航至抖音官方网站:
https://www.douyin.com
3. 检查并关闭登录弹窗
使用browser工具的snapshot操作获取页面元素引用,检查是否存在登录弹窗。
如果存在登录弹窗(查找关闭按钮,通常是img或button元素),使用act操作点击关闭:
browser action=act request={kind:click,ref<关闭按钮引用>:}
4. 定位搜索栏
使用browser工具的snapshot操作获取页面元素引用,找到搜索栏输入框(文本框类型,描述包含搜索)。
5. 输入关键词
使用browser工具的act操作,选择type类型,在搜索栏中输入目标关键词:
browser action=act request={kind:type,ref:<搜索栏引用>,text:<关键词>}
6. 等待提示框出现
等待1-2秒让自动提示框加载:
browser action=act request={kind:wait,timeMs:2000}
7. 收集自动提示
使用snapshot操作获取提示框中的关键词列表,查找包含在list或generic元素中的关键词文本。
8. 整理输出
将收集到的关键词整理成列表格式,输出给用户。
浏览器自动化命令示例
启动浏览器并访问抖音
browser action=start profile=openclaw
browser action=navigate targetUrl=https://www.douyin.com
获取页面快照(获取元素引用)
browser action=snapshot refs=aria
关闭登录弹窗(如果存在)
查找弹窗中的关闭按钮(通常是img或button元素,位于弹窗右上角附近),并点击:
browser action=act request={kind:click,ref<关闭按钮引用>:}
在搜索栏输入关键词
browser action=act request={kind:type,ref:<搜索栏引用>,text:<关键词>}
等待提示框加载
browser action=act request={kind:wait,timeMs:2000}
获取提示框内容
browser action=snapshot refs=aria
注意事项
- 1. 登录弹窗处理:访问抖音首页后可能会弹出登录框,需要先点击关闭按钮(通常是弹窗右上角的X图标)才能继续操作。
- 登录状态:部分搜索功能可能需要登录,如果关闭弹窗后仍无法获取提示,建议手动扫码登录。
- 反爬虫机制:抖音可能存在反爬虫机制,操作时需要适当增加延迟,避免触发风控。
- 元素引用:使用refs=aria获取稳定的元素引用,确保操作准确性。
- 等待时间:输入关键词后,等待1-2秒让自动提示框加载完成。
- 移动端适配:抖音移动端和桌面端界面可能不同,建议使用桌面模式。
输出格式
关键词:[输入的关键词]
搜索建议:
- 1. 建议1
- 建议2
- 建议3
...