Javascript 通过jquery解析google搜索

Javascript 通过jquery解析google搜索,javascript,jquery,parsing,search,Javascript,Jquery,Parsing,Search,我需要从google搜索中获取json/数组 $.get("http://google.com/", { "q": "query" }, function(data){ // PARSE ALL LINKS AND TITLE }, "json"); 我怎么能做到 我不想使用ajax google api,因为它已被弃用,我需要获得至少10个结果。您可能必须使用google自定义搜索api。您可以使用示例代码作为起点。您需要研究JSONP+1如何使用api,而不是依赖可能

我需要从google搜索中获取json/数组

$.get("http://google.com/", { "q": "query" },
   function(data){
     // PARSE ALL LINKS AND TITLE
   }, "json");
我怎么能做到


我不想使用ajax google api,因为它已被弃用,我需要获得至少10个结果。

您可能必须使用google自定义搜索api。您可以使用示例代码作为起点。

您需要研究JSONP+1如何使用api,而不是依赖可能发生变化的url请求。还请注意,示例代码中提供的密钥是有效的,但是您应该通过google custom search developer页面设置自己的密钥。