最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
基于Google.com的Apis的客户端程序
时间:2022-07-02 12:04:33 编辑:袖梨 来源:一聚教程网
原作:Smile Seo
说明:
这是一个非常小的Google客户端程序,原作者是Smile Seo,我只是转译并在适当的地方加上了注释。
注意:
这里用到了Google提供的web service,你需要Google提供给你一个免费的许可密码,同时你每天也只能以这个密码搜索1000次。
你能够在http://www.google.com/apis/下载SDK并申请密码。再次感谢Smile Seo与Google。
下载源码(155Kb)
代码如下:
private void buttonSearch_Click(object sender, System.EventArgs e)
{
labelSearchText.Text = "搜索...";
labelSearchText.Update();
// 创建Google的搜索对象
//
GoogleSearchService s = new GoogleSearchService();
GoogleSearchResult r;
// 调用搜索函数
//
r = s.doGoogleSearch(
"", ; 这里需要你的许可密码!
textSearch.Text,
0,
10,
false, "", false, "", "", "");
// 创建result.htm文件来显示结果
//
string strFile = "result.html";
StreamWriter sw = File.CreateText(strFile);
// 文件头
说明:
这是一个非常小的Google客户端程序,原作者是Smile Seo,我只是转译并在适当的地方加上了注释。
注意:
这里用到了Google提供的web service,你需要Google提供给你一个免费的许可密码,同时你每天也只能以这个密码搜索1000次。
你能够在http://www.google.com/apis/下载SDK并申请密码。再次感谢Smile Seo与Google。
下载源码(155Kb)
代码如下:
private void buttonSearch_Click(object sender, System.EventArgs e)
{
labelSearchText.Text = "搜索...";
labelSearchText.Update();
// 创建Google的搜索对象
//
GoogleSearchService s = new GoogleSearchService();
GoogleSearchResult r;
// 调用搜索函数
//
r = s.doGoogleSearch(
"", ; 这里需要你的许可密码!
textSearch.Text,
0,
10,
false, "", false, "", "", "");
// 创建result.htm文件来显示结果
//
string strFile = "result.html";
StreamWriter sw = File.CreateText(strFile);
// 文件头
相关文章
- fgo狂信长技能宝具怎么样 fgo狂信长技能宝具强度介绍 05-14
- FGO职阶刻痕该怎么去选择 FGO职阶刻痕选择推荐 05-14
- core中本聪下载官方免费版 05-14
- core最新版下载官网版 05-14
- core免费挖矿app下载2024最新版 05-14
- avive vv币交易所下载2024最新版 05-14