Skip to content

Instantly share code, notes, and snippets.

@gabceb
Last active December 25, 2015 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabceb/6909505 to your computer and use it in GitHub Desktop.
Save gabceb/6909505 to your computer and use it in GitHub Desktop.
## This piece of code is not optimized for beauty or # of lines so don't judge :p
require 'open-uri'
require 'JSON'
url = "http://www.letsrevolutionizetesting.com/challenge"
while true do
url = url.gsub("challenge", "challenge.json")
json = JSON.parse(open(url).read)
puts "RESPONSE: #{json}"
# Grab the follow key from the json
url = json["follow"]
puts "Got it! Trying #{url}"
end
@frodopwns
Copy link

kinda defeats the purpose if you give it away...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment