Baidu Search URL parameter meaning (2014-08-19 15:46:13)
reproduced
|
Category: Android development |
http://blog.csdn.net/followingturing/article/details/7850317 http://www.baidu.com/s?wd=justin&rsv_spt=1 &issp=1&rsv_bp=0&ie=utf-8&tn=baiduhome_pg&rsv_sug3=6&rsv_sug9=eb&rsv_sug4=354& rsv_sug2=0&inputt=1284
Original articles, copyright belongs to Andxu All, such as reproduced please ask my consent, and must save this page link.
——————————————————————————————————————————————————
When doing a search, focus on search engine URL format is a very important issue, take Baidu as an example, tidy up the commonly used formats and techniques:
Eg. Several Baidu search URLs
http://www.baidu.com/s? lm=0 (search results time limit) &si=&rn=10 (number per page) &ie=gb2312& (language) ct=0 &wd=?%6?? & (Keywords) pn=10 (add 1 pages after PN 10) &ver=0 &cl=3 &uim=6 &usm=0
http://www.baidu.com/s?ie=utf8&bs=mc&f=8&rsv_bp=1&rsv_spt=3&wd= Baidu search URL meaning &inputt=12534
ttp://www.baidu.com/s?wd=libreoffice+cal+??????? &rsv_bp=0&rsv_spt=3&oq=libreoff&sug=libreoffice&rsv_n=1&rsp=0&inputt=23204
Http://www.baidu.com/s?word=jay+site:blog.csdn.net&tn=sitehao123&ie=utf-8
So the key question: how to correctly understand the parameters of Baidu search?
For the current understanding, tidy up the parameters:
| Serial number |
Parameters |
Meaning |
| 1 |
Tn |
The search box belongs to the Web site. such as Tn=sitehao123, is http://www.hao123.com/left on the search box (referring to the way to reach the Baidu homepage search interface;) |
| 2 |
S?wd |
Refers to the keyword, "wd=" is the abbreviation of Word in English, the parameter represents the content of the search keyword, if it is a Chinese character then this parameter is 16 of Chinese characters, if it is in English, then this parameter is expressed in English |
| 3 |
Rsv_bp |
(0,1,2) 0 is the first input; 1 is the top search input; 2 is the bottom search input. |
| 4 |
Rsv_spt |
(1,3 there are other numbers, temporarily not found) refers to the browser kernel; |
| 5 |
Rsv_ers |
xn* (* Take 0 or 1) refers to the search term, the page appears corresponding to the relevant search, starting from 0. If the URL is already 0, then the corresponding search will start from 1 (this parameter has a lot of secret, this is just a preliminary test) |
| 6 |
Rsp |
Refers to the related search sort (starting from 0) |
| 7 |
Sug |
This parameter only appears when you modify the drop-down box text, which refers to the keyword that appears in the drop-down box. |
| 8 |
Oq |
When you enter a search term, you enter half of the words you enter before you select the drop-down box, oq= refers to the search term, and only when the URL address is RSP instead of RSV_BP, OQ refers to jumping from the search term to the relevant search. |
| 9 |
Inputt |
From the time you open the Baidu home page, enter the data in the dialog box to start timing, to you click on Baidu a moment calculation. (only on top of search, first page search will appear). |
| 10 |
S?bs |
Refers to the last search term, "bs=" parameter should be English "base" abbreviation, that is "based on ..." meaning, popular point is to search for a keyword after another keyword meaning. bs= This parameter is Baidu used to judge a keyword of the relevant keywords set, that is, Baidu through the user's search behavior to determine a keyword related keywords. (maybe before Search) |
| 11 |
F |
(1,3,8) There may be other, temporarily found on these 3 kinds, 1 refers to the relevant search, indicating that the user selected the search page at the bottom of the "related search" in a keyword. ; 3 drop-down box search indicates that the user entered a certain word after the "associative words", the user eventually selected a keyword with the mouse, or select a keyword with the keyboard and then press ENTER directly. ; 8 User self-search, indicating that the user directly click on the "Baidu" button (there is a BS variable only appears f=8) |
| 12 |
Ieinput Encoding |
Enter the encoding. Baidu does not seem to support other encodings. The default value is "gb2312" |
| 13 |
Ct |
Language restrictions. 0-All languages, 1-Simplified Chinese web page, 2-Traditional Chinese web page; Other indeterminate or invalid or. The default value is 0. |
| 14 |
Rn |
The number of search results that each page contains. The default value is 10 |
| 15 |
Pn |
The zero-based count of the number of search results. That is, PN = ${result page -1}*rn. |
| 16 |
Lm |
The time limit for search results. In days, such as searching for the last one months of the page, lm=30. The default value is 0, which means there is no time limit. |
| 17 |
Q5 |
Search for content location restrictions. 0-all content; 1-page title (equivalent to using ' title: ' query prefix); 2-url (equivalent to using ' inurl: ' query prefix); the other value is equivalent to 0. The default value is 0 |
| 18 |
Q6 |
Search for content site restrictions. For example, q6=sohu.com, which means searching only for sohu.com pages; The default value is NULL |
| 19 |
Dq |
It is not recommended to use this parameter. Query content to the original region limit. The specific value is determined by Baidu. The default value is null. The effect of using this parameter is poor. |
| 20 |
Cl |
Baidu submitted by the type of search (Class), cl=3 for Web search, cl=2 for Baidu News |
| 21st |
Rs2 |
temporarily unknown |
| 22 |
Sc |
temporarily unknown |
| 23 |
|
|
Baidu search url parameter meaning