Skip to content

Instantly share code, notes, and snippets.

@20esaua
Created June 5, 2018 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 20esaua/3fbfb382fe94db8ec0f97825fcfe3b00 to your computer and use it in GitHub Desktop.
Save 20esaua/3fbfb382fe94db8ec0f97825fcfe3b00 to your computer and use it in GitHub Desktop.
import urllib.request
def test(i):
try:
output = (urllib.request.urlopen("https://c.statcounter.com/t.php?sc_project=9723423&java=1&security=7dbba45b&u1=1DED3E2F05F14F9140589E441356E648&sc_random=0.04749143558385471&jg=new&rr=1.1.1.1.1.1.1.1.1&resolution=1920&h=1082340&camefrom=&u=https%3A//masseychem.weebly.com/ib-candidates.html&t=IB%20Candidates%20-%20Mr.%20Massey%27s%20Chemistry%20Pages&rcat=d&rdom=d&rdomg=new&bb=5&sc_snum=5&sess=7a9eb4&p=0", timeout=10).read())
print(i)
except:
print('Timeout!')
def rip():
import threading, time
i = 1
while True:
t = threading.Thread(target = test, args = (i,))
t.daemon = True
t.start()
time.sleep(0.05)
i += 1
rip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment