Important: The Google Image Search API has been officially deprecated as of May 26, 2011. It will continue to work as per our deprecation policy, but the number of requests you may make per day may be limited. We encourage you to upgrade to the Custom Search API, which now supports image search.
Allows you to get images through google image API.
API reference: http://code.google.com/apis/imagesearch/
require 'google_image_api'
result = GoogleImageApi.find("your term", {
:imgsz => "medium",
:rsz => 8,
:start => 8,
:imgtype => "face",
:as_filetype => "jpg"
})
result.images.each do |img|
puts img['url']
end
This is by default configured like this:
http://code.google.com/apis/loader/signup.html
GoogleImageApi.Configure {
key nil # optional
}