网络爬虫,使用存放在C的谷歌驱动报错

月 06, 2024 11:43:40 上午 org.openqa.selenium.os.OsProcess checkForError

严重: org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "C:\chromedriver121.exe" (in directory "."): CreateProcess error=5, 拒绝访问。)

org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.

Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z'

System info: host: 'DESKTOP-L00GMNM', ip: '10.0.15.244', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.7'

Driver info: driver.version: ChromeDriver

at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:193)

at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:179)

出现这样的错误,是因为程序要访问chromedriver驱动的时候权限不足

特别是刚刚升级了驱动

解决办法:授权

网络爬虫,使用存放在C的谷歌驱动报错_第1张图片

希望对你有所帮助

你可能感兴趣的:(爬虫)