【问题标题】:Google Custom Search returns 'No Results' onlyGoogle 自定义搜索仅返回“无结果”
【发布时间】:2012-12-13 16:22:39
【问题描述】:

我正在使用 Google 的链接自定义搜索引擎。下面是我的代码。但我无法得到任何结果。我正在尝试搜索网站 www.penmai.com。请找到 http://niranjan.99k.org/wa/cref_cse.xml

<html>
    <head>
        <form id="cref" action="http://www.google.com/cse">
          <input type="hidden" name="cref" value="http://niranjan.99k.org/wa/cref_cse.xml" />
          <input type="text" name="q" size="40" />
          <input type="submit" name="sa" value="Search" />
        </form>

    </head>
    <body>
        <script type="text/javascript" src="http://www.google.com/cse/brand?form=cref"></script>
<!-- Google CSE Search Box Ends -->
    </body>
</html> 

【问题讨论】:

    标签: search-engine google-custom-search


    【解决方案1】:

    问题在于您尝试从中获取数据的位置。cse 仅适用于托管网页,不适用于 .xml 等文件

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-06-23
      • 2018-08-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多