Skip to content

Instantly share code, notes, and snippets.

@dokipen
Created February 10, 2012 15:59
Show Gist options
  • Save dokipen/1790465 to your computer and use it in GitHub Desktop.
Save dokipen/1790465 to your computer and use it in GitHub Desktop.
import requests
import sys
for i in range(1,10000):
response = requests.post('http://apply.embed.ly/1', data={'answer': str(i)})
if response.status_code == 302:
print i
sys.exit(0)
@sentientmachine
Copy link

This does not uphold the spirit of the test! Trial and error is good for dating, not for coding.

@dokipen
Copy link
Author

dokipen commented Feb 10, 2012

I'm allowed some lenience since I wrote the problem :P I was mainly trying to give my coworkers a good laugh.

@sidchilling
Copy link

Ha ha ha... nice one :)

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