关键词工具开发

关键词研究工具
一个人可以拥有最好的产品版本而没有人购买。这是因为人们不知道他或她的产品有多棒。这不仅仅是关于在线。人们应该能够看到你或你的产品。

然而,这要求人们了解人们想要和搜索的内容。当人们在他们擅长的利基市场中搜索产品时,他们如何表达?他们最大的要求是什么?找到这些问题的正确答案会显着提高个人或企业的可发现性。

有一些工具可以帮助你使用正确的关键字。这些关键字经常会发生变化,此工具还有助于进行必要的更新和调整。这样,你的产品始终保持较高的知名度。

下面推荐一些开发工具,轻松搞定关键词:

hassancs91 / Keyword-Research-tool-python

https://github.com/hassancs91/Keyword-Research-tool-python?tab=readme-ov-file

使用谷歌自动完成建议构建关键词研究工具,工具都是使用谷歌自动完成建议来生成关键词的。例如:打开谷歌,输入“python f”,你会看到谷歌会建议大约 10 个以“python”和字母“f”开头的关键词想法。

如何以编程方式读取谷歌自动建议?现在,是时候在我们的代码中读取和自动化这个流程了!

We have to approaches:
我们有两种方法:

  1. Using Web Automation and Scraping
    使用网络自动化和抓取
  2. Using Google Search Free API Call I chose the second approach, simply because with web automation, the operation will be slower, and you may get Recaptcha to solve, and things will be complicated.
    使用谷歌搜索免费 API 调用 我选择了第二种方法,仅仅是因为使用网络自动化,操作将会更慢,而且你可能会遇到需要解决 reCAPTCHA 的情况,事情会变得复杂。

#The Magical API Call: http://google.com/complete/search?output=toolbar&gl=us&q=github
#神奇的 API 调用:http://google.com/complete/search?output=toolbar&gl=us&q=github 你可以更改国家和查询,以使用这个调用获取谷歌自动建议的 XML 格式。

关键词研究工具是一个轻量级的 Python 应用程序,它通过利用 Google 的搜索自动完成功能,帮助内容创作者和营销人员发现关键词创意。它的工作原理是在用户提供的单词前添加疑问词(如“是什么”、“怎么样”)并查询 Google 的自动完成 API,以获取人们正在积极搜索的建议。

该系统采用简洁的架构,专注于直接 API 集成,而不是网络抓取,以确保可靠性和性能。

hassancs91 / Keyword-Bomber-Tool

关键词轰炸工具是一款专业的 SEO 实用工具,用于生成和分析内容营销和搜索引擎优化的关键词建议。该系统结合了 Google 的自动完成 API 和 OpenAI 的大型语言模型,提供按类别组织的全面关键词建议,以及这些建议的 AI 驱动分析。

关键词轰炸工具主要提供三种功能:

  1. Keyword Generation: Systematically queries Google’s Autocomplete API with variations of the input keyword to generate extensive keyword suggestions.
    关键词生成:系统性地使用 Google 自动完成 API 查询输入关键词的各种变体,以生成大量的关键词建议。
  2. Categorization: Organizes suggestions into 12 semantic categories (Questions, Prepositions, etc.) to provide structured keyword data.
    分类:将建议组织成 12 个语义类别(问题、介词等),以提供结构化的关键词数据。
  3. AI Analysis: Analyzes the generated keywords using OpenAI’s GPT models to provide strategic SEO recommendations.
    AI 分析:使用 OpenAI 的 GPT 模型分析生成关键词,以提供战略性的 SEO 建议。

Build a Keyword research tool with google autocomplete suggestions in python

系统的核心功能是 bomber.py 中的 get_keyword_data() ,它:

  1. Takes an input keyword, country code, and OpenAI API key
    接收一个输入关键词、国家代码和 OpenAI API 密钥
  2. Generates keyword suggestions via Google Autocomplete
    通过 Google 自动完成生成关键词建议
  3. Processes these suggestions through an AI analysis
    通过 AI 分析处理这些建议
  4. Returns a structured result with both raw keyword data and AI analysis
    返回包含原始关键词数据和 AI 分析的结构化结果

关键词生成系统( get_suggestion_keywords_google_optimized() )将关键词分为 12 个语义组:

Category  类别Description  描述Examples  例子
Questions  问题Interrogative prefixes  疑问前缀who, what, where, when, why, how
谁,什么,哪里,何时,为什么,怎样
Prepositions  介词Common prepositions  常用介词can, with, for  can,with,for
Alphabit  字母表Alphabetical prefixes  字母前缀a, b, c, … z
Comparisons  比较Comparative terms  比较术语vs, versus, or  vs、versus、或
Intent-Based  基于意图Purchase/research intent  购买/研究意图buy, review, price, best  买、评论、价格、最佳
Time-Related  时间相关Temporal modifiers  时间修饰词schedule, deadline, today, now
时间表,截止日期,今天,现在
Audience-Specific  针对特定受众Target audience modifiers
目标受众修饰
for beginners, for students
适合初学者,适合学生
Problem-Solving  问题解决Issue-related terms  与问题相关的术语solution, issue, error, fix
解决方案,问题,错误,修复
Feature-Specific  特定功能Feature modifiers  功能修饰with video, analytics, tools
带视频,分析,工具
Opinions/Reviews  意见/评论Feedback terms  反馈术语review, opinion, rating  评论, 意见, 评分
Cost-Related  与成本相关Price modifiers  价格调整因素cost, budget, cheap, expensive
成本,预算,便宜,昂贵
Trend-Based  基于趋势Trend indicators  趋势指标trends, new, upcoming  趋势,新,即将到来

For each category, the system creates modified queries (e.g., “how [keyword]” or “[keyword] vs”) and fetches suggestions from Google’s Autocomplete API.
对于每个类别,系统会创建修改后的查询(例如,“如何[关键词]”或“[关键词]对比”),并从 Google 的自动完成 API 获取建议。

AI Analysis   人工智能分析

The suggestions_ai_analysis() function:   suggestions_ai_analysis() 函数:

  1. Formats the categorized keyword data using a template from prompts.py
    使用 prompts.py 中的模板格式化分类关键词数据
  2. Sends this formatted prompt to OpenAI’s GPT-3.5 model
    将格式化后的提示发送给 OpenAI 的 GPT-3.5 模型
  3. Returns the AI-generated analysis that provides strategic insights about the keywords
    返回 AI 生成的分析,提供有关关键词的战略见解