Skip to content

Instantly share code, notes, and snippets.

@siyo
Created March 2, 2012 13:27
Show Gist options
  • Save siyo/1958364 to your computer and use it in GitHub Desktop.
Save siyo/1958364 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'googleajax'
GoogleAjax.referer = 'http://foobar.com/'
query = ARGV.shift
res = GoogleAjax::Search.images(query)
res[:results].each{|result|
puts result[:url]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment