When to Use
需要免费获取关键词数据,替代Ahrefs/SEMrush等付费工具:
- - Google "People Also Ask" 问题抓取
- Google Autocomplete 下拉框关键词
- Reddit用户讨论/痛点提取
- Bing搜索相关关键词
- 自动生成话题标题
适用于SEO关键词研究、内容策略规划、竞品分析。
Quick Reference
CODEBLOCK0
Parameters
- -
--seed: 种子关键词(必填) - INLINECODE1 : 数据源(all/google-paa/autocomplete/reddit/bing)
- INLINECODE2 : 输出文件路径
- INLINECODE3 : 每个源最大结果数(默认20)
- INLINECODE4 : 语言代码(默认en)
Output Format
CODEBLOCK1
Installation
CODEBLOCK2
Data Sources Explained
Google PAA (People Also Ask)
Uses
people-also-ask Python library to scrape "People also ask" questions from Google. Works without API key. May need proxy rotation for heavy use.
Google Autocomplete
Queries Google's suggestion API endpoint. Returns related searches. Free but rate-limited.
Reddit
Uses Reddit's public JSON API. Searches relevant subreddits for user discussions, pain points, and questions. Great for understanding real user needs.
Bing Search
Bing has less aggressive bot detection than Google. Good for related searches and content ideas.
Tips for Better Results
- 1. Use multiple seed keywords for broader coverage
- Combine sources for comprehensive data
- Filter results by relevance to your niche
- Use clusters to identify content gaps
- Reddit data is gold for understanding pain points
Known Limitations
- - Google may block requests from data center IPs
- Reddit API may require authentication for heavy use
- Results quality depends on seed keyword specificity
- Rate limiting may slow down large research jobs
使用场景
当需要免费获取关键词数据,替代Ahrefs/SEMrush等付费工具时:
- - 抓取GooglePeople Also Ask问题
- 获取Google自动补全下拉框关键词
- 提取Reddit用户讨论/痛点
- 获取Bing搜索相关关键词
- 自动生成话题标题
适用于SEO关键词研究、内容策略规划、竞品分析。
快速参考
bash
python3 {baseDir}/keyword_miner.py --seed your keyword --sources all --output results.json
参数说明
- - --seed:种子关键词(必填)
- --sources:数据源(all/google-paa/autocomplete/reddit/bing)
- --output:输出文件路径
- --max-results:每个源最大结果数(默认20)
- --language:语言代码(默认en)
输出格式
json
{
seed_keyword: adult products for couples,
google_paa: [question1, question2],
autocomplete: [suggestion1, suggestion2],
reddittopics: [{title: ..., score: 100, painpoints: ...}],
bing_related: [related1, related2],
clusters: [{name: cluster1, keywords: [...]}],
topic_ideas: [How to..., Best ...]
}
安装方法
bash
pip install people-also-ask beautifulsoup4 requests
数据源详解
Google PAA(People Also Ask)
使用people-also-ask Python库从Google抓取People also ask问题。无需API密钥即可运行。大量使用时可能需要代理轮换。
Google自动补全
查询Google的搜索建议API接口。返回相关搜索词。免费但有速率限制。
Reddit
使用Reddit的公共JSON API。搜索相关子版块中的用户讨论、痛点和问题。非常适合了解真实用户需求。
Bing搜索
Bing的机器人检测比Google宽松。适合获取相关搜索和内容创意。
优化建议
- 1. 使用多个种子关键词以获得更广覆盖
- 组合多个数据源获取全面数据
- 根据你的细分领域筛选相关结果
- 利用聚类分析识别内容缺口
- Reddit数据是理解用户痛点的金矿
已知限制
- - Google可能会屏蔽来自数据中心IP的请求
- 大量使用时Reddit API可能需要身份验证
- 结果质量取决于种子关键词的具体程度
- 速率限制可能拖慢大规模研究任务