环境
- VS Code
- Python 3.11.1
- selenium 模块
- time 模块
开始
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
s = Service(executable_path=r'D:\Program Files\Python3\WebEdgeDriver\msedgedriver.exe')
options = webdriver.EdgeOptions()
# 处理SSL证书错误问题
options.add_ar