2016-04-28 62 views
6

想知道从谷歌搜索结果中返回网址列表/数组的最简单方法。我将使用JS和谷歌APIGoogle搜索的返回网址列表

我想这样做,这

谷歌的一个术语,如“狗”是什么

有相关于搜索URL的数组/列表: domainurl1 domainurl2

等。

回答

1
options[google.search.Search.RESTRICT_EXTENDED_ARGS] = { 
    'cr': 'countryIT', 
    'sort': 'date' 
}; 
var customSearchControl = new google.search.CustomSearchControl(id, options); 

下面是语法来获取返回的URL列表

google.search.CustomSearchControl.CustomSearch 
     Control(cseId, opt_options); 

你会得到正确的信息在这个环节:Return URL list