最新下载
热门教程
- 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);
// 文件头
相关文章
- 阴阳师SSR孔雀明王强度介绍 05-20
- 明日方舟CW 05-20
- bitkeep官网下载app 05-20
- Ordi币安卓版官方登录版 05-20
- 《金铲铲之战》怒翼龙阵容装备搭配 05-20
- 欧易trust钱包安卓版2024 05-20