【问题标题】:How to get Result of GwebSearchClient如何获取 GwebSearchClient 的结果
【发布时间】:2013-08-23 06:39:23
【问题描述】:

我正在使用 GoogleSearchAPI 来查找我使用下面提到的代码中的一些信息

GwebSearchClient client = new GwebSearchClient("test");
IList<IWebResult> results = client.Search("vampire diaries", 20);
foreach (IWebResult result in results)
{
   Response.Write(String.Format("[{0}] {1} => {2} <br/><br/><br/>", result.Title, result.Content, result.Url));
}

但它会给我 .com 网址,是否可以通过过滤器找出结果我的意思是我只需要 .UK 网址或 .US 网址。

我如何获得此类详细信息?

谢谢

【问题讨论】:

    标签: c# google-search-api


    【解决方案1】:

    是的,您可以添加过滤器,例如

     IEnumerable<IWebResult> result = client.Search(keyword.Name.Trim(), 20, "", "", "", "English","", "uk");
    

    【讨论】:

      猜你喜欢
      • 2018-01-22
      • 2014-11-03
      • 1970-01-01
      • 2013-02-02
      • 1970-01-01
      • 2015-07-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多