wangkun 2 years ago
parent
commit
6080794bea
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/gongzhonghao.py

+ 2 - 2
main/gongzhonghao.py

@@ -152,8 +152,8 @@ class GongZongHao:
             chrome_options.add_argument("--no-sandbox")
 
             # driver初始化
-            # driver = webdriver.Chrome(desired_capabilities=ca, options=chrome_options)
-            driver = webdriver.Chrome(desired_capabilities=ca, options=chrome_options, service=Service('/Users/wangkun/Downloads/chromedriver/chromedriver_v108/chromedriver'))
+            driver = webdriver.Chrome(desired_capabilities=ca, options=chrome_options)
+            # driver = webdriver.Chrome(desired_capabilities=ca, options=chrome_options, service=Service('/Users/wangkun/Downloads/chromedriver/chromedriver_v108/chromedriver'))
 
             driver.implicitly_wait(10)
             # Common.logger(log_type).info('打开文章链接')