2020-1-13
谷歌搜索参数详细列表(需要有一定基础的人才能看懂)
最基本搜索参数
https://www.google.com/search?
hl=en
&q=test
&btnG=Google+Search
高级搜索参数,包含了谷歌搜索后网址的全部参数
https://www.google.com/search?
as_q=test (query string)
&hl=en (language)
&num=10 (number of results [10,20,30,50,100])
&btnG=Google+Search
&as_epq= (complete phrase)
&as_oq= (at least one)
&as_eq= (excluding)
&lr= (language results. [lang_countrycode])
&as_ft=i (filetype include or exclude. [i,e])
&as_filetype= (filetype extension)
&as_qdr=all (date [all,M3,m6,y])
&as_nlo= (number range, low)
&as_nhi= (number range, high)
&as_occt=any (terms occur [any,title,body,url,links])
&as_dt=i (restrict by domain [i,e])
&as_sitesearch= (restrict by [site])
&as_rights= (usage rights [cc_publicdomain,cc_attribute,cc_sharealike,cc_noncommercial,cc_nonderived]
&safe=images (safesearch [safe=on,images=off])
&as_rq= (similar pages)
&as_lq= (pages that link)
&gl=us (2-digit country code in lowercase)
如果有兴趣可以在搜索结果中修改这些参数改变谷歌结果,例如修改参数的语言部分,直接改变结果中语言或者搜索别国谷歌数据结果。目前一些客户开发系统,获取谷歌数据就是通过不断变化这里的参数得到不同的结果
高级图像搜索参数
https://www.google.com/imghp?
as_q= (query string)
&hl=en (language)
&btnG=Google+Search
&as_epq= (complete phrase)
&as_oq= (at least one)
&as_eq= (excluding)
&imgtype= (restrict by image type)
&imgsz= (restrict by image size)
&imgc= (restrict by image color)
&as_filetype= (filetype extension)
&as_sitesearch= (restrict by [site])
&safe=off (safesearch [safe=on,images=off])
&as_st=y
Image type, size and color restrictions are explained more in depth under the restricting image search results section.
不同浏览器的搜索参数
Searching from Firefox 2.0.0.4:
https://www.google.com/search?
q=test
&ie=utf-8
&oe=utf-8
&aq=t
&rls=org.mozilla:en-US:official
&client=firefox-a
Searching from Internet Explorer 7.0.5730.11:
https://www.google.com/search?
q=test
&sourceid=ie7
&rls=com.microsoft:en-US
&ie=utf8
&oe=utf8