Question
timeout!!!???
def fix_timeout(n):
#start time
timeout = n
start = time.time()
try:
req = urllib.request.Request('https://www.saatchiart.com/')
a = urllib.request.urlopen(req,timeout = timeout).read()
#end time
end = time.time()
print(str(end-start))
except Exception as e:
print("failed")
raise e