NAME

WWW::Cache::Google - URI class for Google cache

SYNOPSIS

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

DESCRIPTION

404 Not Found. But wait ... there's a google cache!

WWW::Cache::Google provides an easy way conversion from an URL to Google cache URL.

METHODS

$cache = WWW::Cache::Google->new($url);

constructs WWW::Cache::Google instance.

$orig_uri = $cache->orig;

returns original URL as URI instance.

$cache_uri = $cache->cache;

returns Google cache URL as URI instance.

$html = $cache->fetch;

gets HTML contents of Google cache. Requires LWP::Simple.

$url_str = $cache->as_string;

        returns Google cache's URL as string. Every method defined in URI
        class is autoloaded through $cache->cache. See the URI manpage for
        details.

AUTHOR

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 WIHTOUT WARRANTY OF ANY KIND.

SEE ALSO

the WWW::Cache::Google::Imode manpage, the URI manpage, the URI::Escape manpage, the LWP::Simple manpage, http;//www.google.com/

Revision history for Perl extension WWW::Cache::Google.

0.02 Mon Jun 25 19:34:26 JST 2001

0.01 Fri May 18 20:11:49 2001