Skip to content

Instantly share code, notes, and snippets.

@antitree
Last active August 29, 2015 14:27
Show Gist options
  • Save antitree/54eb783495bf1ee92f9b to your computer and use it in GitHub Desktop.
Save antitree/54eb783495bf1ee92f9b to your computer and use it in GitHub Desktop.
First attempt at the script
import requests
import time
import sys
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0',
'Referer': 'http://www.interlockroc.org'
}
#for i in range(1000000):
print("Starting Winning v1")
while True:
try:
r = requests.get("http://bit.ly/benmillerjacobson", headers=headers)
if r.status_code == 200:
sys.stdout.write('.')
sys.stdout.flush()
else:
raise Exception("Throttled. Chill for a bit")
except Exception as err:
print("ERROR: %s" % err)
time.wait(30)
print "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment