Library tutorials & articles

Implementing The Google Web Service In VB.NET

Conclusion

Hopefully this article has shown you how simple it is to incorporate the Google web service iton your application. Here are a few things that you could do with this service:

  • Issuing regularly scheduled search requests to monitor the web for new information on a subject.
  • Performing market research by analyzing differences in the amount of information available on different subjects over time.
  • Searching via non-HTML interfaces, such as the command line, pagers, or visualization applications.
  • Creating innovative games that play with information on the web.
  • Add Google spell-checking to an application.

The Google web service supports the same search syntax as the Google.com web site, and provides each developer who registers to use the Google web service with a limit of 1,000 queries per day (this is easily enough for small/medium sized applications to make use of).

Checkout http://www.google.com/apis/api_faq.html if you have further any questions about the Google web service.

Comments

  1. 09 Sep 2008 at 10:09

     I tired this in Visual Basic 9.0 .net 3.5 the code is slightly modified details are given below,

    Public Class Google_Search

     ' for Google Search button


        Private Sub BtnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSearch.Click
            Dim MyLicenseKey As String
            ' Declare variable for the Google search service
            Dim MyService As GoogleReference.GoogleSearchPort = New GoogleReference.GoogleSearchPortClient
            ' Declare variable for the Google Search Result
            Dim MyResult As GoogleReference.GoogleSearchResult
            ' Please Type your license key here
            MyLicenseKey = "tGCTJkYos3YItLYzI9Hg5quBRY8bGqiM"
            ' Execute Google search on the text enter and license key
            MyResult = MyService.doGoogleSearch(MyLicenseKey, _
            TxtSearch.Text, 0, 1, False, "", False, "", "", "")
            ' output the total Results found
            LblTotalFound.Text = "Total Found : " & _
            CStr(MyResult.estimatedTotalResultsCount)
        End Sub

    'For name search button

        Private Sub BtnCheckSpelling_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCheckSpelling.Click
            Dim MyLicenseKey As String
            ' Declare variable for the Google search service
            Dim MyService As GoogleReference.GoogleSearchPort = New GoogleReference.GoogleSearchPortClient
            ' Declare variable for the Google Search Result
            Dim MyResult As String
            'Please type in your key here
            MyLicenseKey = "tGCTJkYos3YItLYzI9Hg5quBRY8bGqiM"
            ' Execute Google search on the text enter and license key
            MyResult = MyService.doSpellingSuggestion(MyLicenseKey, TxtCheckSpelling.Text)
            'Output Results
            LblCorrectSpelling.Text = "Did you mean: " & MyResult
        End Sub
    End Class
     

  2. 30 Mar 2004 at 08:19

    With a huge pleasure I've found this article. Thank you.

  3. 01 Jan 1999 at 00:00

    This thread is for discussions of Implementing The Google Web Service In VB.NET.

Leave a comment

Sign in or Join us (it's free).

Jayesh Jain Jayesh Jain is working as a Business Analyst in Auckland, New Zealand. He has several years of n-Tier development experience in developing interactive client solutions. He has a passion for Web dev...
AddThis

Related podcasts

  • Introduction to Atlas

    Get your feet wet with an introduction to Atlas. Atlas is the new part of the .NET framework specifically for web clients. Features include AJAX and web services support, new validation controls, behaviors, and an object orientation layer sitting on top of JavaScript.

Events coming up

  • Dec 8

    December Silicon Valley Ruby Meetup

    Moffett Field, United States

    In a World of Middleware, Who Needs Monolithic Applications? by Jon Crosby With Rack emerging as the standard for composing web applications and services, most recently with Rails adoption, an architectural shift is taking place. Learn how to create next generation web services by reusing existing Rack middleware and supplementing with your own components and micro-frameworks like Sinatra. Bio : Jon likes music, the Open Web, Ruby, Erlang, Haskell, Objective-C, JavaScript and coffee.

Want to stay in touch with what's going on? Follow us on twitter!