
WWW::Google::Images - Google Images Agent

Version 0.6.5

This module may be used search images on Google. Its interface is heavily inspired from WWW::Google::Groups.

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(base => 'image' . $count);
print $image->save_context(base => 'page' . $count);
}

Creates and returns a new WWW::Google::Images object.
Optional parameters:
use $server as server.
use $proxy as proxy on port $port.
Perform a search for $query, and return a WWW::Google::Images::SearchResult object.
Optional parameters:
limit the maximum number of result returned to $limit.
limit the minimum width of result returned to $width pixels.
limit the minimum width of result returned to $height pixels.
limit the minimum size of result returned to $size ko.
limit the maximum width of result returned to $width pixels.
limit the maximum width of result returned to $height pixels.
limit the maximum size of result returned to $size ko.
limit the width/height ratio of result returned to $ratio (+/- tolerance).
set the tolerance limit for the ratio limit to $ratio_delta (default: 1.0).
limit the result returned to those whose filename matches case-sensitive $regex regular expression.
limit the result returned to those whose filename matches case-insensitive $regex regular expression.

Copyright (C) 2004-2006, INRIA.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Guillaume Rousse <grousse@cpan.org>