WWW::Cache::Google::Imode - URI class for Google proxy on i-mode


WWW-Cache-Google documentation Contained in the WWW-Cache-Google distribution.

Index


Code Index:

NAME

Top

WWW::Cache::Google::Imode - URI class for Google proxy on i-mode

SYNOPSIS

Top

  use WWW::Cache::Google::Imode;

  $cache = WWW::Cache::Google::Imode->new('http://www.yahoo.com/');

  $url  = $cache->as_string;	# cache URL
  $html = $cache->fetch; 	# fetches via LWP::Simple

DESCRIPTION

Top

Easy conversion from HTML to CHTML. That's google on i-mode!

WWW::Cache::Google::Imode provides an easy way conversion from an URL to Google i-mode proxy/cache URL.

METHODS

Top

Same as WWW::Cache::Google.

AUTHOR

Top

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.

SEE ALSO

Top

WWW::Cache::Google.


WWW-Cache-Google documentation Contained in the WWW-Cache-Google distribution.

package WWW::Cache::Google::Imode;

use strict;
use vars qw($VERSION);
$VERSION = 0.04;

require WWW::Cache::Google;
use base qw(WWW::Cache::Google);

sub cache_base {
    return 'http://wmlproxy.google.com/chtmltrans/p=i/s=0/u=%s/c=0';
}

sub _cache_param {
    my $self = shift;
    my $param = $self->SUPER::_cache_param();
    $param =~ tr/%/@/;
    return $param;
}


1;
__END__