16 lines
360 B
Python
16 lines
360 B
Python
import threading
|
|
import requests, time
|
|
|
|
payload = {'name': 'hi'}
|
|
|
|
class MyTherad(threading.Thread):
|
|
def run(self):
|
|
response = requests.get('http://www.cmiaahq.org.tw/signup/ajax.php?ajcode=1&apost=1', data=payload)
|
|
print(response.status_code)
|
|
print(response.text)
|
|
|
|
while True:
|
|
wa = MyTherad()
|
|
wa.start()
|
|
time.sleep(0.1)
|