From 6ee5286343c82cb71a594eb37494b356b2fcb047 Mon Sep 17 00:00:00 2001 From: Pin Lin Date: Sun, 4 Mar 2018 22:35:16 +0800 Subject: [PATCH] --- 守護中華民國.md | 16 ++++++++++++++++ 守護中華民國.py | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 守護中華民國.md create mode 100644 守護中華民國.py diff --git a/守護中華民國.md b/守護中華民國.md new file mode 100644 index 0000000..d097552 --- /dev/null +++ b/守護中華民國.md @@ -0,0 +1,16 @@ +# 守護中華民國 + +連署的太慢了,全中華民國台灣的大家都應該加入連署! +我們的中華民國,大家一起捍衛! + +## 需求 + +```python +pip3 install requests +``` + +## 用法 + +```python +python3 守護中華民國.py +``` \ No newline at end of file diff --git a/守護中華民國.py b/守護中華民國.py new file mode 100644 index 0000000..6734f64 --- /dev/null +++ b/守護中華民國.py @@ -0,0 +1,15 @@ +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)