MCPcopy Create free account
hub / github.com/Infinity242/KickViewBot / run_script

Function run_script

KickViewBotHEADLESS.py:72–85  ·  view source on GitHub ↗
(url, num_threads)

Source from the content-addressed store, hash-verified

70 pass
71
72def run_script(url, num_threads):
73 processes = []
74 num_windows = 0
75 for i in range(num_threads):
76 bot = KickBot(url)
77 process = Process(target=bot.doTest)
78 process.start()
79 processes.append(process)
80 num_windows += 1
81 if num_windows == 4:
82 num_windows = 0
83 sleep(6)
84 for process in processes:
85 process.join()
86
87if __name__ == '__main__':
88 url = input("Enter the website URL: ")

Callers 1

Calls 1

KickBotClass · 0.70

Tested by

no test coverage detected