WWW::Cache::Google - URI class for Google cache
use WWW::Cache::Google; $cache = WWW::Cache::Google->new('http://www.yahoo.com/'); $url = $cache->as_string; # cache URL $html = $cache->fetch; # fetches via LWP::Simple
Oops, 404 Not Found. But wait ... there might be a google cache!
WWW::Cache::Google provides an easy way conversion from an URL to Google cache URL.
If all you want is only to get cache content, consider using Google Web APIs at http://www.google.com/apis/index.html
$html = SOAP::Lite ->uri('urn:GoogleSearch') ->proxy('http://api.google.com/search/beta2') # may change ->doGetCachedPage($GoogleKey, 'http://cpan.org/') ->result;
constructs WWW::Cache::Google instance.
returns original URL as URI instance.
returns Google cache URL as URI instance.
gets HTML contents of Google cache. Requires LWP::Simple.
returns Google cache's URL as string. Every method defined in URI class is autoloaded through $cache->cache. See URI for details.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
It comes WITHOUT WARRANTY OF ANY KIND.
WWW::Cache::Google::Imode, URI, URI::Escape, LWP::Simple, http;//www.google.com/ http://www.google.com/apis/index.html
To install WWW::Cache::Google, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Cache::Google
CPAN shell
perl -MCPAN -e shell install WWW::Cache::Google
For more information on module installation, please visit the detailed CPAN module installation guide.