Skip to content

Instantly share code, notes, and snippets.

@gabceb
Last active December 25, 2015 03:28
Show Gist options
  • Select an option

  • Save gabceb/6909505 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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