I need to talk with the Google Images API on my Rails Application. Is there a Ruby gem to do this? I found an old gem that used the deprecated API.
The RubyGems software allows you to easily download, install, and use ruby software packages on your system. The software package is called a “gem” which contains a packaged Ruby application or library. Gems can be used to extend or modify functionality in Ruby applications.
RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a "gem"), a tool designed to easily manage the installation of gems, and a server for distributing them.
There is a gem called google_custom_search_api
that uses the newer google custom search API:
https://github.com/wiseleyb/google_custom_search_api
You can limit this to image search by specifying image
for the searchType
parameter, like so:
results = GoogleCustomSearchApi.search("poker", {"searchType" => "image"})
Also there is another gem called image_suckr - https://github.com/maurimiranda/image_suckr also you can do somthing similar directly in Google Image Search API
suckr = ImageSuckr::GoogleSuckr.new
suckr.get_image_url({"q" => "car"})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With