软件
阿多 2024-01-23 207 0 0 0 0
百度搜索,使用百度搜索中各个关键词的含义,记录备份。wd--查询的关键词,pn--已显示的结果条数,即当前页从pn条记录开始显示,该值为10的倍数。cl--搜索类型,cl=3为网页搜索cl=2为图片搜索或新闻搜…

使用百度搜索中各个关键词的含义,记录备份。
wd--查询的关键词,
pn--已显示的结果条数,即当前页从pn条记录开始显示,该值为10的倍数。
cl--搜索类型,cl=3为网页搜索 cl=2为图片搜索或新闻搜索,cl=0是所有结果,其他值未知。
当搜索结果中出现“提示:为了提供最相关的结果,我们省略了一些内容相似的条目,点击这里可以看到所有搜索结果。”,点击之后的cl的值为0,而此时显示的结果相对比较多。

rn--搜索结果中每页显示的条数,取值范围在10、20、50、100,缺省设置rn=10
ie--查询输入文字的编码,缺省设置ie=gb2312,即为简体中文。
tn-- 提交搜索请求的来源站点。
一个有用的tn:tn=baidulocal 表示百度站内搜索,返回的结果是很干净的,没有任何广告。在百度站内搜索“汽车”,看看返回的结果是不是很清爽。
另外,从做百度联盟搜索的网站A 搜索过来的都有这个tn参数,当你点击搜索结果中带“推广”的网站B,做百度“推广”的网站B的户主账户中就会被扣掉一部分费用,其中一部分百度留着,另外一小部分给网站A的户主,因为你从网站A搜索过来的。

lm--限定要搜索的网页的时间,值为0、1、7、30、360,以天为单位,例如搜索最近一个月的网页,lm=30。默认值为0,表示没有时间限制。
ct--语言,0-所有语言,1-简体中文网页,2-繁体中文网页;默认值为0。
bs--上一次搜索的关键词,应该与相关搜索有关。
ft--搜索的文档格式,pdf、doc、xls、ppt、rtf等,默认值为空。

q1--包含以下的全部的关键词
q2--包含以下的完整关键词
q3--包含以下任意一个关键词
q4--不包括以下关键词
q5--关键词位置,为空表示网页的任何地方,1表示仅网页标题中,2表示仅网页URL网址中。
q6--限定在某个指定的网站,比如q6=wyz.67ge.com,表示仅在wyz.67ge.com中搜索

Add another summary

 

The Complete List of Baidu Search URL Parameters

The URL of a search engine result page usually looks messy but contains a lot of information. You look at them every day but you may not know which parameter represents what. It is not your fault, as obviously search engineers deliberately make them hard to read.

But if that could make SEOs give up, I guess there would never have been a career called SEO. Search Engine Land has a post titled “Google Power User Tips: SERP URL Parameters“, contributed by Stephen Spencer back in Sep 2010; Blue Glass also has a post on the same topic: Google Search URL Parameters – Query String Anatomy; Joost de Valk created a cheat sheet on Google search URL parameters, which you can download here.

So today I’d like to build a list of the URL parameters of Baidu. I digged, tested, and brainstormed. I hope it can be the most complete one.

A typical URL of Baidu’s result page looks like this:

http://www.baidu.com/s?wd=SEO&rsv_spt=1&rsv_bp=0&ie=utf-8&tn=baiduhome_pg&inputT=11987

s?” here means someone has done a search; “&” is used to separate the parameters. And other parameters the link above includes are:

wd: keyword you search for. Very occasionally it is replaced by “word”;

rsv_spt: login status. “1” means the search is conducted by a logged-in user; “3” means the searcher doesn’t log in;

rsv_bp: where you do the search. “0” means it is done from Baidu’s homepage; “1” means from top search box of the result page; “2” means from the bottom search box of the result page;

ie: query encoding. The default value is gb2312;

tn: this is a referral tag. “baiduhome_pg” means Baidu homepage; “sitehao123” means the referrer is hao123.com;

inputT: input time by the millisecond;

Other parameters also include:

bs: previous search query;

pn:pagination of the result page, starting from 0;

rn:number of results per page, with the default value of 10;

cl:search type, with 3 representing web search, 2 for image search and news search;

lm:period filter for results by the day. For example lm=7 means results of the past seven days;

ct:languages, with 0 for all languages, 1 for simplified Chinese, and 2 for traditional Chinese;

oq:original search query for related searches. For example you searched “SEO” then clicked on one of the related searches like “SEO services”, then the value of “oq” is “SEO”;

rsp:ordinal number of the suggested queries for related search, starting from 0;

f:search type. f=8 means a normal search (input and search), f=3 for the dropdown suggestion list of the search box and f=1 means a related search.

So the above parameters are all the ones that my colleagues, friends and I collected and studied.

You know what? I lied. The title says “The Complete List of Baidu Search URL Parameters”, but actually I have no idea if it is complete, as there is not an official version from Baidu.

I’d be really happy if you can prove I am a liar by adding other Baidu search URL parameters not included here.


Tag: 百度搜索
相关内容
欢迎评论
未登录,
请先 [ 注册 ] or [ 登录 ]
(一分钟即可完成注册!)
返回首页     ·   返回[软件]   ·   返回顶部