有没有办法绕过谷歌的100搜索配额?

时间:2016-05-26 08:14:53

标签: c# .net google-search-api

Google有100个搜索配额,这个配额太低而无法使用。每次运行搜索时,配额都会增加1.这是代码:

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可以做类似的事情?

1 个答案:

答案 0 :(得分:5)

这是Google商业模式的一部分。如果您想超出配额,那么您需要开始支付服务费用。

You can find the pricing here.

相关问题