LuTong 2 月之前
父节点
当前提交
aa6f358a0b
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/scraper.py

+ 3 - 1
src/scraper.py

@@ -71,7 +71,9 @@ class Scraper1688:
             return opts
         try:
             self.driver = uc.Chrome(options=create_options(), headless=headless, browser_executable_path=chrome_path, use_subprocess=True)
-        except Exception:
+            # self.driver = uc.Chrome(options=create_options(), headless=headless, browser_executable_path=chrome_path, use_subprocess=True)
+        except :
+        # except Exception:
             self.driver = uc.Chrome(options=create_options(), headless=headless, use_subprocess=True)
 
     def clean_url(self, url):