Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (17 sloc) 346 Bytes
require 'rest-client'
print "what would you like to search for: "
response = gets.chomp
response = response.split.join("+")
client = RestClient.get("https://www.google.co.uk/#q=#{response}")
puts
puts "Code:"
puts client.code
puts
puts "Cookies:"
puts client.cookies
puts
puts "Headers:"
puts client.headers
puts
puts "Body:"
puts client.body