最近用selenium在centos服务器部署爬虫项目,centos默认安装了火狐浏览器,相应的驱动为geckodriver
驱动下载:https://github.com/mozilla/geckodriver/releases
该映射关系来自于官方文档(博主找了好几天),博文最后有参考链接
The following table shows a mapping between geckodriver releases and required versions of Selenium and Firefox:
geckodriver | Selenium | Firefox | |
---|---|---|---|
min | max | ||
0.26.0 | ≥ 3.11 (3.14 Python) | 60 | n/a |
0.25.0 | ≥ 3.11 (3.14 Python) | 57 | n/a |
0.24.0 | ≥ 3.11 (3.14 Python) | 57 | n/a |
0.23.0 | ≥ 3.11 (3.14 Python) | 57 | n/a |
0.22.0 | ≥ 3.11 (3.14 Python) | 57 | n/a |
0.21 |