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