NAME
Net::Google::Cache - simple OOP-ish interface to the Google SOAP API for cached documents
SYNOPSIS
use Net::Google::Cache;
my $cache = Net::Google::Cache($service,\%args);
$cache->url("http://aaronland.net);
print $cache->get();
DESCRIPTION
Provides a simple OOP-ish interface to the Google SOAP API for cached documents.
This package is used by Net::Google.
Class Methods
$pkg = Net::Google::Cache->new($service,\%args)
Where $service is a valid GoogleSearchService object.
Valid arguments are :
key
String. Google API key. If none is provided then the key passed to the parent Net::Google object will be used.
url
String.
$pkg->key($key)
Returns a string. Returns undef if there was an error.
$pkg->url($url)
Set the cached URL to fetch from the Google servers.
Returns a string. Returns an undef if there was an error.
$pkg->get()
Fetch the requested URL from the Google servers.
Returns a string. Returns undef if there was an error.
VERSION
0.14
DATE
$Date: 2003/02/22 16:48:52 $
AUTHOR
Aaron Straup Cope
TO DO
Add hooks to get method to strip out Google headers and footers from cached pages.
SEE ALSO
LICENSE
Copyright (c) 2002-2003, Aaron Straup Cope. All Rights Reserved.
This is free software, you may use it and distribute it under the same terms as Perl itself.