最新下载
热门教程
- 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.g*o*ogl*e.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.g*o*ogl*e.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);
// 文件头
相关文章
- 韩剧tv官网下载入口-韩剧tv安卓版官方正版下载入口地址 08-17
- 漫蛙漫画官网平台怎么直达 08-17
- Anime Fight Scene Storyboard Instruction 08-17
- winlator如何呼出键盘 08-17
- Medusa Girl Emotional Crying Animation 08-17
- Ancient Swordsman Duel Face-off 08-17