网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

使用selenium在chrome打开网页报错

时间:2024-10-12 03:24:53

1、下载chrome driverchromedriver下载地址:https://sites.google.com/a/chromium.org/chromedriver/downloads

使用selenium在chrome打开网页报错使用selenium在chrome打开网页报错

2、代码中手动设置chrome driver的路径:from selenium import webdriverimport oschromeDriver = "D:\...\chromedriver_win32\chromedriver.exe"os.environ["webdriver.chrome.driver"] = chromeDriverbrower = webdriver.Chrome(chromeDriver)brower.get("https://www.baidu.com")

© 2025 小知经验
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com