安装:
准备环境:python、pycharm
chromedriver下载地址汇总:
- Chrome: https://sites.google.com/a/chromium.org/chromedriver/downloads
- (国内镜像地址):http://npm.taobao.org/mirrors/chromedriver/
- Edge: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
- Firefox: https://github.com/mozilla/geckodriver/releases
- Safari: https://webkit.org/blog/6900/webdriver-support-in-safari-10/
找到与浏览器对应版本的驱动程序下载下来,放在python安装目录下面。
举例:chrome浏览器
下载selenium:
在cmd命令窗口输入&#x