2016-05-26 73 views
4

Google擁有100個搜索配額,該配額太低而無法使用。我每次運行搜索,1。此處的份額增加是代碼:有沒有辦法繞過谷歌的100個搜索配額?

string apiKey = "(MY API KEY HERE)"; 
string cx = "(MY CUSTOM SEARCH ENGINE CODE HERE)"; 
var tempi = 0; 

var svc = new Google.Apis.Customsearch.v1.CustomsearchService(new BaseClientService.Initializer { ApiKey = apiKey }); 

string query = "test" 
potato = 0; 
var listRequest = svc.Cse.List(query); 
listRequest.Cx = cx; 
var search = listRequest.Execute(); 

foreach (var result in search.Items.Take(3)) 
{ 
    if (potato == 0) 
    { 
     console.WriteLine("**Title:** " + result.Title + "\n**Link:** " + result.Link); 
     potato += 1; 
    } 
} 

有沒有用這個,而不必每次都使用了查詢的方法嗎?如果沒有,有沒有其他的API可以做類似的事情?

回答

相關問題