|
|
@ -45,6 +45,7 @@ def request_loop(client: Client, urls: [str], fm: FileManager, method: str = 'GE
|
|
|
|
f.write('datetime,status-code,timing,content-length\n')
|
|
|
|
f.write('datetime,status-code,timing,content-length\n')
|
|
|
|
while True:
|
|
|
|
while True:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
random.shuffle(urls)
|
|
|
|
for url in urls:
|
|
|
|
for url in urls:
|
|
|
|
d = names[url]
|
|
|
|
d = names[url]
|
|
|
|
status_file = open(os.path.join(fm.data_dir, '%s-status.csv' % d), 'a')
|
|
|
|
status_file = open(os.path.join(fm.data_dir, '%s-status.csv' % d), 'a')
|
|
|
|