Jason il y a 1 an
Parent
commit
9045bc4c9d
1 fichiers modifiés avec 26 ajouts et 0 suppressions
  1. 26 0
      website_clickjobs/type-R/tcd2.py

+ 26 - 0
website_clickjobs/type-R/tcd2.py

@@ -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')