Changeset 113

Show
Ignore:
Timestamp:
06/25/01 19:35:52
Author:
miyagawa
Message:

Cross reference on WWW::Cache::Google

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WWW-Cache-Google/trunk/README

    r79 r113  
    55      use WWW::Cache::Google; 
    66 
    7       # OO decorator way 
    8       $cache = WWW::Cache::Google->new(URI->new('http://www.yahoo.com/')); 
     7      $cache = WWW::Cache::Google->new('http://www.yahoo.com/'); 
    98 
    10       print $cache->as_string; # cache URL 
    11       print $cache; # overloaded 
    12  
    13       $html = $cache->fetch; # fetches via LWP::Simple 
    14  
    15       # functional way 
    16       use WWW::Cache::Google qw(url2google get_google_cache); 
    17       $cache_url  = url2google('http://www.yahoo.com/'); 
    18       $cache_html = get_google_cache('http://www.yahoo.com'); 
     9      $url  = $cache->as_string;    # cache URL 
     10      $html = $cache->fetch;        # fetches via LWP::Simple 
    1911 
    2012DESCRIPTION 
     13    404 Not Found. But wait ... there's a google cache! 
     14 
    2115    WWW::Cache::Google provides an easy way conversion from an URL to Google 
    2216    cache URL. 
     17 
     18METHODS 
     19    $cache = WWW::Cache::Google->new($url); 
     20        constructs WWW::Cache::Google instance. 
     21 
     22    $orig_uri = $cache->orig; 
     23        returns original URL as URI instance. 
     24 
     25    $cache_uri = $cache->cache; 
     26        returns Google cache URL as URI instance. 
     27 
     28    $html = $cache->fetch; 
     29        gets HTML contents of Google cache. Requires LWP::Simple. 
     30 
     31    $url_str = $cache->as_string; 
     32        returns Google cache's URL as string. Every method defined in URI 
     33        class is autoloaded through $cache->cache. See the URI manpage for 
     34        details. 
    2335 
    2436AUTHOR 
     
    2941 
    3042SEE ALSO 
    31     the URI manpage, the URI::Escape manpage, the LWP::Simple manpage, 
    32     http;//www.google.com/ 
     43    the WWW::Cache::Google::Imode manpage, the URI manpage, the URI::Escape 
     44    manpage, the LWP::Simple manpage, http;//www.google.com/ 
    3345 
  • WWW-Cache-Google/trunk/lib/WWW/Cache/Google.pm

    r111 r113  
    116116=head1 SEE ALSO 
    117117 
    118 L<URI>, L<URI::Escape>, L<LWP::Simple>, http;//www.google.com/ 
     118L<WWW::Cache::Google::Imode>, L<URI>, L<URI::Escape>, L<LWP::Simple>, http;//www.google.com/ 
    119119 
    120120=cut