LuTong il y a 2 mois
Parent
commit
aa6f358a0b
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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):