开发者

How do I integrate google search into my C# program?

开发者 https://www.devze.com 2023-03-09 03:33 出处:网络
I\'m working on a program in V开发者_StackOverflowisual C#.NET and I need some help. I need it to be able to take in some text through a text box, then somehow send that text to google, and bring bac

I'm working on a program in V开发者_StackOverflowisual C#.NET and I need some help.

I need it to be able to take in some text through a text box, then somehow send that text to google, and bring back the resulting URLs (not the full results, just the URLs) and then display those in my program. How would I do that?


Use the WebClient class to send the query to Google and read the response.

Alternatively, use a .NET library that interacts with the Google search API, like this one (this was just the first Google result).

There are also REST libraries for .NET, if you go with the newer custom search.


Unfortunately the Google Web Search API is deprecated and no longer available. However the next best thing IMO is Google Custom Search Engine.

0

精彩评论

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