Your Name 3 年之前
父節點
當前提交
ba74ff158c
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      choozmo/proxy_pool.py

+ 7 - 4
choozmo/proxy_pool.py

@@ -56,10 +56,13 @@ while True:
     #desired_capabilities=DesiredCapabilities.CHROME)
     driver.set_window_size(1400,1000)
     time.sleep(3)
-    driver.get('https://www.sparkamplab.com/events/arvr-2021')
-    scrolling(20)
-    print('done scrolling')
-    time.sleep(10)
+    try:
+        driver.get('https://www.sparkamplab.com/events/arvr-2021')
+        scrolling(20)
+        print('done scrolling')
+        time.sleep(10)
+    except:
+        print('excpet')
     driver.quit()