Created
October 9, 2013 18:55
-
-
Save gfodor/6906273 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env ruby | |
require "json" | |
url = "http://www.letsrevolutionizetesting.com/challenge.json?id=572744636" | |
loop do | |
json = `curl #{url}` | |
json = JSON.parse(json) | |
puts json.inspect | |
url = json["follow"].gsub("challenge", "challenge.json") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment