Last active
August 29, 2015 14:27
-
-
Save antitree/54eb783495bf1ee92f9b to your computer and use it in GitHub Desktop.
First attempt at the script
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
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