Created
October 4, 2022 07:36
-
-
Save hrishimittal/1e5e674a47938951e2b2598fe86a0fe6 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
def solve(url) | |
require 'net/http' | |
require 'json' | |
uri = URI(url) | |
response = JSON.parse(Net::HTTP.get(uri)) | |
puts response | |
solve(response["follow"].gsub('challenge', 'challenge.json')) if response["message"] == "This is not the end" | |
end | |
solve("https://www.letsrevolutionizetesting.com/challenge.json") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment