#coding=utf-8
import requests
import threading
import time
print "start:" + (time.strftime("%H:%M:%S"))
def access():
for i in range(1,11):
url = 'http://drops.wooyun.org/papers/7049'
r = requests.get(url)
if r.status_code == 200:
print url
print i
#access()
threads = []
for i in xrange(5):
t = threading.Thread(target=access)
threads.append(t)
t.start()
t.join()
import requests
import threading
import time
print "start:" + (time.strftime("%H:%M:%S"))
def access():
for i in range(1,11):
url = 'http://drops.wooyun.org/papers/7049'
r = requests.get(url)
if r.status_code == 200:
print url
print i
#access()
threads = []
for i in xrange(5):
t = threading.Thread(target=access)
threads.append(t)
t.start()
t.join()
#way2
# for i in xrange(7):
# t = threading.Thread(target=access)
# threads.append(t)
# for i in threads:
# i.start()
# for i in threads:
# i.join()
# t = threading.Thread(target=access)
# threads.append(t)
# for i in threads:
# i.start()
# for i in threads:
# i.join()
print"end:" + (time.strftime("%H:%M:%S"))