From 747d070ec06cfa77e397dacc493947d8fee06e95 Mon Sep 17 00:00:00 2001 From: RobustBody <68662195+RobustBody@users.noreply.github.com> Date: Wed, 15 Feb 2023 17:06:53 +0800 Subject: [PATCH] Update 1yzm.py --- 1yzm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/1yzm.py b/1yzm.py index 97d328e..717def3 100644 --- a/1yzm.py +++ b/1yzm.py @@ -57,8 +57,7 @@ options.add_argument('--disable-dev-shm-usage') options.add_argument('--disable-headless') options.add_experimental_option('excludeSwitches', ['enable-logging']) -#options.add_argument('user-data-dir=C:\\Users\\lutw\\AppData\\Local\\Microsoft\\Edge\\User Data') -options.add_argument('--user-data-dir=C:\\Users\\lutw\\AppData\\Local\\Microsoft\\Edge\\User Data') #这行如果导致报错,显示"unknown error: DevToolsActivePort file doesn't exist" 说明edge还有进程在后台运行 +options.add_argument('--user-data-dir=C:\\Users\\xxx\\AppData\\Local\\Microsoft\\Edge\\User Data') #这行如果导致报错,显示"unknown error: DevToolsActivePort file doesn't exist" 说明edge还有进程在后台运行 driver = webdriver.Edge(options=options)