The agent requires both googleapi.jar and oaa2.jar to be on your class path.
Provides and OAA interface to Google Inc's search engine.
The Google agent provides two solvables for interacting with Google.
google_search(+STRING: GoogleLicenceKey, +STRING: GoogleSearchString, +INTEGER: MaxNoResults, -STRING: ResultTitle, -STRING: ResultURL, -STRING: ResultSnippet)
- GoogleLicenceKey: This key issued by Google Inc to limit you to 1000 searches a day. Instructions for obtaining one are below.
- GoogleSerachString: Your Google query. Accepts the same syntax as the search box on Google's Web interface. Details in the documentation on Google's Advanced Search Tips page.
- MaxNoResults: Limits the maximum number of results that Google will return for your query.
- ResultTitle: The title of the search result, formatted as HTML.
- ResultURL: The absolute URL of the search result.
- ResultSnippet: The snippet which shows the query in context on the URL where it appears.
google_cached_page(+STRING: GoogleLicenceKey, +STRING: URL, -STRING: Page)
- GoogleLicenceKey: Access key issued by Google Inc. This limits you to 1000 searches a day. Instructions for obtaining one are below.
- GoogleSerachString: Absolute URL of the page.
- Page : Content of Google's cache for URL.
Obtaining your Google License Key
Google Inc offers free license keys through a simple Web based application process. The key just limits you to 1000 searches each day. Please go here to create a Google account. It only takes a couple of minutes.
Our thanks to Google, Inc. for providing the googleapi.jar file, which is
made available as part their Web APIs Developer's Kit at
http://www.google.com/apis/download.html. Google, Inc. provides this
service for your personal, non-commercial use only. The Google Web APIs
(TM) service must be used in accordance with a license agreement, which
is presented in the process of obtaining a license key.
Please don't hesitate to contact me if you have any questions.
Author: Peter A. Jarvis (email@example.com)
Implementation Language: Java
Date last modified : January 13, 2003