谷歌自定义搜索仅返回"无结果"



我正在使用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> 

问题出在您尝试从中获取数据的位置上。 CSE 仅适用于托管网页,而不适用于.xml

最新更新