Created
October 7, 2012 07:26
-
-
Save hokkai7go/3847418 to your computer and use it in GitHub Desktop.
search twitter using json format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "net/http" | |
require "json" | |
request = Net::HTTP::Get.new("/search.json?q=railsgirls") | |
http = Net::HTTP.start('search.twitter.com') | |
response = http.request(request) | |
puts JSON.parse(response.body) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍