|
@@ -0,0 +1,26 @@
|
|
|
+from _clickjob import *
|
|
|
+
|
|
|
+lst=[]
|
|
|
+link='https://www.tcdream.taichung.gov.tw/2345307/post'
|
|
|
+
|
|
|
+#db = dataset.connect('DATABASE LINK HERE')
|
|
|
+
|
|
|
+#lst=resetlst(link) #UNUSED
|
|
|
+lst=['https://www.tcdream.taichung.gov.tw/2345307/post']
|
|
|
+
|
|
|
+while True:
|
|
|
+ try:
|
|
|
+ l=random.choice(lst)
|
|
|
+ # print(l)
|
|
|
+ run_once(l)
|
|
|
+
|
|
|
+ x=random.randint(0,500)
|
|
|
+ y=random.randint(0,2)
|
|
|
+ if x==y:
|
|
|
+ l=resetlst(link)
|
|
|
+ if len(l)!=0:
|
|
|
+ lst=l
|
|
|
+ except:
|
|
|
+ import time
|
|
|
+ time.sleep(5)
|
|
|
+ print('ERROR')
|