Skip to content

sb4m/google_image_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Google image

Allows you to get images through google image API.

API reference: http://code.google.com/apis/imagesearch/

Examples

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

Configuration

This is by default configured like this:

http://code.google.com/apis/loader/signup.html

GoogleImageApi.Configure {
  key nil # optional
}

About

Simplify access to google image api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages