X

Download What is Google API With the Google Web APIs service PowerPoint Presentation

SlidesFinder-Advertising-Design.jpg

Login   OR  Register
X


Iframe embed code :



Presentation url :

Home / Education & Training / Education & Training Presentations / What is Google API With the Google Web APIs service PowerPoint Presentation

What is Google API With the Google Web APIs service PowerPoint Presentation

Ppt Presentation Embed Code   Zoom Ppt Presentation

PowerPoint is the world's most popular presentation software which can let you create professional What is Google API With the Google Web APIs service powerpoint presentation easily and in no time. This helps you give your presentation on What is Google API With the Google Web APIs service in a conference, a school lecture, a business proposal, in a webinar and business and professional representations.

The uploader spent his/her valuable time to create this What is Google API With the Google Web APIs service powerpoint presentation slides, to share his/her useful content with the world. This ppt presentation uploaded by worldwideweb in Education & Training ppt presentation category is available for free download,and can be used according to your industries like finance, marketing, education, health and many more.

About This Presentation

Slide 1 - Introduction to Google API… By Pratheepan Raveendranathan
Slide 2 - The Google Web APIs service is a beta web program that enables developers to easily find and manipulate information on the web. Google Web APIs are for developers and researchers interested in using Google as a resource in their applications. The Google Web APIs service allows software developers to query more than 3 billion web documents directly from their own computer programs. Google uses the SOAP and WSDL standards to act as an interface between the user’s program and Google API. Programming environments such as Java, Perl, Visual Studio .NET are compatible with Google API. Definitions from http:// www.google.com/apis/ What is Google API?
Slide 3 - What can you do with the API Developers can issue search requests to Google's index of more than 3 billion web pages. and receive results as structured data, Estimated number of results, URL’s, Snippets, Query Time etc. access information in the Google cache, and check the spelling of words.
Slide 4 - To start using the API You need to, Download API Package from http://www.google.com/apis/ Create an account and get your license key Install kit in your UMD account And also need Soap::Lite However, it is on all the csdev machines, so you don’t need to get it. IT is not on UB or Bulldog.
Slide 5 - Contents of this package: googleapi.jar - Java library for accessing the Google Web APIs service. GoogleAPIDemo.java - Example program that uses googleapi.jar. dotnet/ Example .NET - programs that uses Google Web APIs. APIs_Reference.html - Reference doc for the API. Describes semantics of all calls and fields. Javadoc - Documentation for the example Java libraries. Licenses - Licenses for Java code that is redistributed in this package. GoogleSearch.wsdl -WSDL description for Google SOAP API. soap-samples/
Slide 6 - WSDL Web Services Description Language The standard format for describing a web service. Expressed in XML, a WSDL definition describes how to access a web service and what operations it will perform. This is the most important file (only) to use the API with Perl.
Slide 7 - SOAP – Simple Object Access Protocol SOAP stands for Simple Object Access Protocol SOAP is a communication protocol SOAP is for communication between applications SOAP is a format for sending messages SOAP is designed to communicate via Internet SOAP is platform independent SOAP is language independent SOAP is based on XML SOAP will be developed as a W3C standard
Slide 8 - Google API for Perl SOAP:Lite SOAP:Lite for Perl is a collection of Perl modules which provides a simple and lightweight interface to the SOAP both on client and server side.
Slide 9 - So How do I Query Google? #!/usr/local/bin/perl –w use SOAP::Lite; # Configuration $key = "Your Key Goes Here"; # Initialize with local SOAP::Lite file $service = SOAP::Lite -> service('file:GoogleSearch.wsdl'); $query= “duluth”;
Slide 10 - Search Contd… $result = $service -> doGoogleSearch( $key, # key $query, # search query 0, # start results 10, # max results "false", # filter: boolean "", # restrict (string) "false", # safeSearch: boolean "", # lr "", # ie "" # oe );
Slide 11 - ppt slide no 11 content not found
Slide 12 - ppt slide no 12 content not found
Slide 13 - Now to Retrieve the Search Results if(defined($result->{resultElements})) { print join "\n", "Found:", $result->{resultElements}->[0]->{title}, $result->{resultElements}->[0]->{URL}, $result->{resultElements}->[0]->{snippet} . "\n" } print "\n The search took "; print $result->{searchTime}; print "\n\n"; print "The estimated Number of results for your query is: "; print $result->{estimatedTotalResultsCount}; print "\n\n"; What you need for your program
Slide 14 - Search.pl Output Found: University of Minnesota Duluth Welcomes You http://www.d.umn.edu/ The University of Minnesota Duluth Homepage: an overview of academic prog rams, campus
life, resources, news and events, with extensive links to other web sites ... The search took 0.159791 The estimated Number of results for your query is: 881000
Slide 15 - Or, to get all elements: foreach $temp (@{$result->{resultElements}}) { print $temp->{snippet}; } foreach $temp (@{$result->{resultElements}}) { print $temp->{URL}; } foreach $temp (@{$result->{resultElements}}) { $title_array[$count++]=$temp->{title}; }
Slide 16 - How to get a spelling suggestion? #!/usr/local/bin/perl -w use SOAP::Lite; # Configuration $key = "Your Key Goes Here"; # Initialize with local SOAP::Lite file $service = SOAP::Lite -> service('file:GoogleSearch.wsdl'); $correction = $service->doSpellingSuggestion($key,$searchString);
Slide 17 - How do I get the results? Easy, The variable Correction will contain the spelling suggestion, if Google has one, or it would be empty if there is no suggestion So Retrieving the result would be as easy as: print "\n The suggested spelling for $searchString is $correction \n\n";
Slide 18 - Spelling output Enter a word dulut The suggested spelling for “Duluth” is: duluth
Slide 19 - How do I get a cached web page? Google has this feature that given a URL, it will try to retrieve the web page from its “cache”. So the actual contents of the page might be somewhat old, relative to when the web crawlers or Google did an update on the site Example,
Slide 20 - Example Contd… #!/usr/local/bin/perl –w use SOAP::Lite; # Configuration $key = "Your Key Goes Here"; # Initialize with local SOAP::Lite file $service = SOAP::Lite -> service('file:GoogleSearch.wsdl'); $url="http://www.d.umn.edu"; $cachedPage=$service->doGetCachedPage($key,$url);
Slide 21 - How do I retrieve the results? This is going to be the same as the spelling suggestion, So if the web page does exist you will have the whole web page HTML in the “cachedWebpage” variable. Otherwise, you would get a message from Google which says “ This web page has not been updated…blah…blah…blah “
Slide 22 - Search with other options: Google has four topic restricts:
Slide 23 - Search with Restrictions: $result = $service -> doGoogleSearch( $key, # key $query, # search query 0, # start results 10, # max results "false", # filter: boolean "linux", # restrict (string) "false", # safeSearch: boolean "", # lr "", # ie "" # oe );
Slide 24 - Search with Language Restrictions $result = $service -> doGoogleSearch( $key, # key $query, # search query 0, # start results 10, # max results "false", # filter: boolean "", # restrict (string) "false", # safeSearch: boolean "lang_de", # lr "", # ie "" # oe ); print "\n The search took "; print $result->{searchTime}; print "\n\n"; print "The estimated Number of results for your query is: "; print $result->{estimatedTotalResultsCount}; print "\n\n"; if(defined($result->{resultElements})) { print join "\n", "Found:", $result->{resultElements}->[0]->{title},$result->{resultElements}->[0]->{URL}, $result->{resultElements}->[0]->{snippet} . "\n" } lang_de = Gernman
Slide 25 - Search with Language Restrictions Contd… Please Enter Search Item der sturm The search took 0.309039 The estimated Number of results for your query is: 206000 Found: SK STURM GRAZ - Willkommen beim Sk Sturm http://www.sksturm.at/ Eintreten. Puntigamer das bierige Bier, Steiermark.com, Puma, Tipp3,
Autohaus Jakob Prügger, Graz - Hausmannstätten. © 2003 SkSturm ...
Slide 26 - Tips on Querying Google Default Search By default, Google only returns pages that include all of the terms in the query string.   Stop Words Google ignores common words and characters such as "where" and "how," as well as certain single digits and single letters. Common words that are ignored are known as stop words. However, you can prevent Google from ignoring stop words by enclosing them in quotes, such as in the phrase "to be or not to be". Special Characters By default, all non-alphanumeric characters that are included in a search query are treated as word separators.   The only exceptions are the following: double quote mark ("), plus sign (+), minus sign or hyphen (-), and ampersand (&).  The ampersand character (&) is treated as another character in the query term in which it is included, while the remaining exception characters correspond to search features listed in the section below. Special Query Terms Google supports the use of several special query terms that allow the user or search administrator to access additional capabilities of the Google search engine. (The same Explanations can be found in the API Reference Section in your Google API download)
Slide 27 - (The following Special Query table can be found in the API Reference Section in your Google API download)
Slide 28 - ppt slide no 28 content not found
Slide 29 - ppt slide no 29 content not found
Slide 30 - ppt slide no 30 content not found
Slide 31 - ppt slide no 31 content not found
Slide 32 - ppt slide no 32 content not found
Slide 33 - Other Interesting Issues Search for say “yahoo”, and look at the estimated number of results. Wait for like a minute or so. Search again for “yahoo” and look at the estimated number of results. The result, 5 out of 10 times, will be different.
Slide 34 - Conclusion… The API can be used as means of retrieving “information” and “Text” from the web. Some interesting examples: http://www.googleduel.com/original.php http://douweosinga.com/projects/googlehacks http://www.researchbuzz.org/archives/001418.shtml http://cgi.sfu.ca/~gpeters/cgi-bin/pear/gender.php