Jared 3 anos atrás
pai
commit
eefbe98a41
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      hhh/SEO/fast_1999.py

+ 1 - 1
hhh/SEO/fast_1999.py

@@ -113,7 +113,7 @@ def re_get_webdriver():
 
         options = webdriver.ChromeOptions()
         # options.add_argument("--headless") # 視窗背後執行
-        options.add_argument("user-agent=" +user_agent)
+        options.add_argument("--user-agent=" +user_agent)
 
         driver = webdriver.Remote(
             command_executor='http://127.0.0.1:'+str(portnum)+'/wd/hub',