用于高级 Google 搜索引擎查询的 URL 格式

Format of URL for advanced Google search engine query

我正在尝试查找 HTML 的高级搜索查询以自动搜索结果。

例如,普通 google.com 查询是 https://google.com/search,而图片搜索查询是 https://images.google.com/images

我找不到通过高级搜索引擎从 4 个文本框中自动搜索值的查询。

我正在寻找的功能是,当我尝试从我的网页搜索关键字时,它应该通过高级搜索引擎:

<form action="https://www.google.com/advanced_search?as_q=q&as_epq=r&as_oq=s&as_eq=t">

我找到了通过高级搜索引擎的替代方法。 高级搜索有一些参数在搜索查询的 URL 中传递:

  • 所有这些话: 运算符传递的是as_q这样的
<input class="" type="text" name="as_q"> 
  • 这个词或短语:传递的运算符是as_epq
  • 这些词中的任何一个: 运算符传递的是 as_oq
  • none这些词:运算符传递的是as_eq

所以我用相应的名称命名了 HTML 文本框,并将上述参数连接到搜索查询。

如果您正在尝试创建 HTML 页面,我想分享此代码。

您可以使用 & nbsp; 为右缩进添加 space。

这是一个例子:

<form action="https://google.com/search">
             All these words:<input type="text" name="as_q" >
            <br><br>Exact word/phrase:<input type="text" name="as_epq" >
            <br><br>Any of these words:<input type="text" name="as_oq" >
            <br><br>None of these words:<input type="text" name="as_eq" >
           <br><br> <input type="submit" value="advanced search">
</form>

对于高级搜索的第一部分,尝试

<form action="https://google.com/search" name="f">
    <div class="field">
        <label for="field1">all these words:</label>
        <input type="text" class="textinput" id="field1" value=""  name="as_q">
    </div>
    <br>
    <div class="field">
        <label for="field2">this exact word or phrase: </label>
        <input type="text" class="textinput" id="field2" value=""  name="as_epq">
    </div>
    <br>
    <div class="field">
        <label for="field3">any of this words: </label>
        <input type="text" class="textinput" id="field3" value=""  name="as_oq">
    </div>
    <br>
    <div class="field">
        <label for="field4">none of these words: </label>
        <input type="text" class="textinput" id="field4" value=""  name="as_eq">
    </div>
    <br>
    <div class="field">
        <label for="field5">numbers ranging from: </label>
        <input type="text" class="textinput1" id="field5" value=""  name="as_nlo">
        <span class="seperator">to</span>
        <input type="text" class="textinput2" id="field5" value=""  name="as_nhi">
    </div>
    <input type="submit" value="advanced search">
</form>