【问题标题】:Format of URL for advanced Google search engine query高级 Google 搜索引擎查询的 URL 格式
【发布时间】:2020-10-22 18:28:02
【问题描述】:

我正在尝试查找 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">

【问题讨论】:

  • 感谢任何试图提供帮助的人

标签: html google-search advanced-search


【解决方案1】:

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

  • 所有这些词:传递的操作符是as_q 像这样。
<input class="" type="text" name="as_q"> 
  • 这个确切的单词或短语:传递的运算符是as_epq
  • 这些词中的任何一个:传递的运算符是as_oq
  • 这些词都不是:传递的运算符是as_eq

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

【讨论】:

    【解决方案2】:

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

    <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>
    

    【讨论】:

      【解决方案3】:

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

      您可以使用&amp; nbsp; 为右缩进添加空格。

      这是一个例子:

      <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>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-12-07
        • 2018-10-21
        • 2015-06-09
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多