百度关键词排名查询工具

通过百度关键词排名查询工具,可以快速得到当前网站的关键字在百度收录的排名情况!便于了解网站自身关键词排名的优势与劣势,从而更好地进行网站优化调整关键词排名 状况。关键词排名是一种在搜索引擎搜索结果中以关键字、关键词、词组的相关性体现网页排名的方式。可以分为关键词自然排名以及各搜索引擎提供的关键词竞价排名服务两种。是由利用长期总结出的搜索引擎收录和排名规则,关键词自然排名一般是搜索引擎对所有相关网页抓取结果自动分析、自动排名的体现,一般可以通过SEO优化技术来达到关键词排名提升。关键词竞价排名服务是由搜索引擎提供的一种有偿排名服务。例如百度的竞价排名就是其中的一种。

最近 "何三笔记" 博客源码已经更新了一版,这个版本在首页直观地看到百度对当前网站的收录情况,如下图:

源码地址:https://gitee.com/pojoin/h3blog

有做SEO的朋友问我能不能做一个百度关键词排名查询工具,作为技术的我那当然是可以的,而且我觉得用python开发还是相对比较简单

界面设计

这个工具界面设计相对比较简单,只需要输入关键词(支持多个关键词,使用英文逗号隔开即可)、域名,然后点击查询按钮即可,下面输出查询结果

代码实现

from tkinter import Button, Entry, Label, StringVar, Tk,ENDfrom tkinter.scrolledtext import ScrolledText文本滚动条from service import BaiduRankServiceclassMyGui():def__init__(self)->None:self.win = Tk()self.win.title(百度关键词排名查询工具-作者何三(www.h3blog.com))self.win.geometry(+600+100)窗口呈现位置self.keywords = StringVar(value=何三笔记)self.domain = StringVar(value=www.h3blog.com)

Label(self.win,text=何三笔记(www.h3blog.com), font=(微软雅黑,20)).grid(row=0, column=1)

Label(self.win, text=关键词).grid(row=1)
Entry(self.win, textvariable=self.keywords ,width=70).grid(row=1, column=1)

Label(self.win, text=域 名).grid(row=2)
Entry(self.win, textvariable=self.domain ,width=70).grid(row=2, column=1)

Button(self.win,text=PC端查询, command=self.search).grid(row =1,column=2)Button(self.win, text=手机端查询, command= self.mobile_search).grid(row = 1,column=2)self.st = ScrolledText(self.win,font=(微软雅黑,10),fg=blue,height=20, width=100)self.st.grid(row=3,column=0,rowspan=3,columnspan=3)defsearch(self):
bs = BaiduRankService(self.st,self.keywords.get(),self.domain.get() )
bs.setDaemon(False)
bs.start()defmobile_search(self):
bs = BaiduRankService(self.st,self.keywords.get(),self.domain.get() , terminal_type=mobile)
bs.setDaemon(False)
bs.start()defstart(self):self.win.mainloop()if__name__==__main__:
gui = MyGui()
gui.start()

改进

目前该工具正在开发手机端百度关键词排名情况的查看功能

工具下载

关注

"何三笔记 回复"百度查排名工具" 进行获取下载地址

为您推荐

返回顶部