浏览代码

more fixes

Jason 2 年之前
父节点
当前提交
f99eaea0de
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      website_clickjobs/type-R/tcd.py

+ 5 - 3
website_clickjobs/type-R/tcd.py

@@ -13,10 +13,12 @@ while True:
        # print(l)
         run_once(l)
         
-        x=random.randint(0,5)
-        y=random.randint(0,6)
+        x=random.randint(0,500)
+        y=random.randint(0,2)
         if x==y:
-            lst=resetlst('https://www.tcdream.taichung.gov.tw/')
+            l=resetlst('https://www.tcdream.taichung.gov.tw/')
+            if len(l)!=0:
+                lst=l
     except:
         import time
         time.sleep(5)