Net::Google::Cache - simple OOP-ish interface to the Google SOAP API for cached documents
use Net::Google::Cache; my $cache = Net::Google::Cache(\%args); $cache->url("http://aaronland.net); print $cache->get();
Provides a simple OOP-ish interface to the Google SOAP API for cached documents.
This package is used by Net::Google.
Valid arguments are :
key
string. A Google API key.
If none is provided then the key passed to the parent Net::Google object will be used.
url
string.
http_proxy
url.
Get/set the URL for proxy-ing HTTP request.
Returns a string.
debug
Valid options are:
boolean
If true prints debugging information returned by SOAP::Lite to STDERR
coderef.
Your own subroutine for munging the debugging information returned by SOAP::Lite.
The object constructor in Net::Google 0.53, and earlier, expected a GoogleSearchService object as its first argument followed by a hash reference of argument. Versions 0.6 and higher are backwards compatible.
Returns an object. Woot!
Get/set the Google API key for this object.
Get/set the HTTP proxy for this object.
Set the cached URL to fetch from the Google servers.
Returns a string. Returns an undef if there was an error.
Fetch the requested URL from the Google servers.
Returns a string. Returns undef if there was an error.
Returns true or false depending on whether or not the current in-memory session has exhausted the Google API 1000 query limit.
1.0
$Date: 2005/03/26 20:49:03 $
Aaron Straup Cope
Add hooks to get method to strip out Google headers and footers from cached pages.
Net::Google
Copyright (c) 2002-2005, Aaron Straup Cope. All Rights Reserved.
This is free software, you may use it and distribute it under the same terms as Perl itself.
To install Net::Google, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Google
CPAN shell
perl -MCPAN -e shell install Net::Google
For more information on module installation, please visit the detailed CPAN module installation guide.