selenium的介绍和环境安装
1、安装第三方库:
pip install -U selenium
2、安装驱动,驱动程序一定要跟浏览器版本匹配,下载驱动地址如下:
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/
3、下载完后,放在Python目录下,如下图: