Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding=utf-8
- import requests
- import time
- from threading import Thread
- def http ():
- session = requests.Session()
- while True:
- try:
- print(time.strftime("%S"),end = '')
- start = session.get("http://www.csjh.ntpc.edu.tw/news/u_news_v2.asp?id={3E8BDD42-E167-4979-A201-187CB4AC9350}&newsid=3533")
- print(start)
- except:
- print("重新連線中...")
- for i in range(100):
- thrd = Thread(target = http)
- thrd.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement