This repository has been archived on 2023-01-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
defend-two-chiang/守護中華民國.py
Pin Lin 4165e5a386
2018-03-05 01:31:35 +08:00

23 lines
628 B
Python

import time
import random
import threading
import requests
class Taiwanese:
def __init__(self):
self.name = "愛國者第 " + str(random.randint(1000087, 8700000)) + ""
self.session = requests.Session()
class MyTherad(threading.Thread):
def run(self):
person = Taiwanese()
person.session.get('http://www.cmiaahq.org.tw/signup/')
response = person.session.post('http://www.cmiaahq.org.tw/signup/ajax.php?apost=1', data={'name': person.name})
print(response.status_code)
print(response.text)
while True:
wa = MyTherad()
wa.start()
time.sleep(0.1)