Prompt Question Finder
Discover what questions people ask about a topic by querying Google Autocomplete with question modifiers.
Usage
Run the script from the skill directory:
CODEBLOCK0
Options
- -
--modifiers what how why should — override default modifiers (default: what how why should can does is when where which will are do) - INLINECODE1 — seconds between requests (use 0.5–1.0 when running many topics in batch)
- INLINECODE2 — output as JSON for programmatic use
- INLINECODE3 — fetch avg monthly search volume via DataForSEO (reads creds from macOS Keychain:
dataforseo-login / dataforseo-password, or env vars DATAFORSEO_LOGIN / DATAFORSEO_PASSWORD) - INLINECODE8 — DataForSEO location code (default: 2840 = US)
- INLINECODE9 — language code for volume lookup (default: en)
Examples
CODEBLOCK1
Rate Limits
Google Autocomplete is an unofficial endpoint. Single-topic runs (10 requests) are safe. When running multiple topics in batch or parallel, always use --delay 0.5 or higher to avoid temporary IP blocks.
How It Works
For each modifier, the script queries https://suggestqueries.google.com/complete/search with "{modifier} {topic}" and returns the autocomplete suggestions. No API key required.
提示问题查找器
通过使用问题修饰词查询谷歌自动补全功能,发现人们围绕某个主题提出的问题。
使用方法
在技能目录中运行脚本:
bash
python3 scripts/find_questions.py 旅行行程
选项
- - --modifiers what how why should — 覆盖默认修饰词(默认值:what how why should can does is when where which will are do)
- --delay 0.5 — 请求间隔秒数(批量运行多个主题时建议使用0.5–1.0)
- --json — 以JSON格式输出,便于程序化使用
- --volume — 通过DataForSEO获取月均搜索量(从macOS钥匙串读取凭证:dataforseo-login / dataforseo-password,或环境变量DATAFORSEOLOGIN / DATAFORSEOPASSWORD)
- --location 2840 — DataForSEO地区代码(默认值:2840 = 美国)
- --lang en — 搜索量查询的语言代码(默认值:en)
示例
bash
默认修饰词(what, how, why)
python3 scripts/find_questions.py 蛋白粉
自定义修饰词
python3 scripts/find_questions.py 旅行行程 --modifiers what how why should when
JSON格式输出
python3 scripts/find_questions.py 旅行行程 --json
速率限制
谷歌自动补全是一个非官方接口。单主题运行(10次请求)是安全的。当批量或并行运行多个主题时,务必使用--delay 0.5或更高的延迟值,以避免临时IP封禁。
工作原理
对于每个修饰词,脚本会向https://suggestqueries.google.com/complete/search查询{修饰词} {主题},并返回自动补全建议。无需API密钥。