开发者

Google CSE returning different results when run from API

开发者 https://www.devze.com 2023-01-24 13:19 出处:网络
I am using the C# wrapper Google-API-for-dot-net to query a custom search engine so that only results for that site are returned. The problem is that the results differ from the CSE page and the API r

I am using the C# wrapper Google-API-for-dot-net to query a custom search engine so that only results for that site are returned. The problem is that the results differ from the CSE page and the API results.

This is the code I am using:

GwebSearchClient Client = new GwebSearchClient(@"http://www.eatout.co.za/");

string开发者_StackOverflow社区 keyword = Query;
int count = 1000;
string customSearchId = "XXXXXXXXX";
string customSearchReference = null;
string language = "English";
string safeLevel = "Off";
string duplicateFilter = "On";
string country = "za";                

var Results = Client.Search(keyword, count, customSearchId, customSearchReference, safeLevel, language, duplicateFilter, country);


Google uses a zero index for the CurrentPageIndex used when paging. I was seeing page 2 the whole time.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号