NAME
WWW::Google::Images - Google Images Agent
VERSION
Version 0.1
DESCRIPTION
This module may be used search images on Google. Its interface is heavily inspired from WWW::Google::Groups.
SYNOPSIS
use WWW::Google::Images;
$agent = WWW::Google::Images->new(
server => 'images.google.com',
proxy => 'my.proxy.server:port',
);
$result = $agent->search('flowers', limit => 10);
while ($image = $result->next()) {
$count++;
print $image->content_url();
print $image->context_url();
print $image->save_content_as('image' . $count);
print $image->save_context_as('page' . $count);
}
Constructor
new(%args)
Creates and returns a new WWW::Google::Images
object.
Optional parameters:
$agent->search($query, %args);
Perform a search for $query, and return a WWW::Google::Images::SearchResult
object.
Optional parameters:
COPYRIGHT AND LICENSE
Copyright (C) 2004, INRIA.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Guillaume Rousse <grousse@cpan.org>