Created
April 15, 2014 00:48
-
-
Save rchasman/10693141 to your computer and use it in GitHub Desktop.
Code to pass the RainforestQA application challenge.
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
import requests | |
import urlparse | |
def getid(id): | |
url = "http://letsrevolutionizetesting.com/challenge.json?" | |
r = requests.get(url + id) | |
return urlparse.urlsplit(r.json()['follow'])[3] | |
seed = "" | |
while True: | |
seed = getid(seed) | |
print seed | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hacked this up really quickly just to apply.
To whomever at Rainforest made this job application process:
Thanks, it was FUN :)