一、安装Python
建议大家安装Python3中的稳定版本 Python3.7或Python3.8
官网下载链接:https://www.python.org/
二、安装Selenium
cmd环境下,输入:pip install selenium
二、安装PyCharm
如果只做自动化下载社区版的就好。但还是建议大家去下载专业版的,毕竟专业版的功能非常多,破解教程百度一下就有很多。
官网下载链接:https://www.jetbrains.com/pycharm/download/#section=windows
三、浏览器驱动下载
要启动相应的浏览器必须要有它的驱动,最新的驱动版本对应最新的浏览器版本。
注意!!!驱动版本一定要对应你电脑上浏览器的版本!!!
下载的驱动解压到python执行程序目录下即可。
chromedriver(Chrome谷歌驱动)
http://chromedriver.storage.googleapis.com/index.html或http://npm.taobao.org/mirrors/chromedriver/
geckodriver(Firefox火狐驱动)
https://github.com/mozilla/geckodriver/releases
MicrosoftWebDriver(edge驱动)
http://go.microsoft.com/fwlink/?LinkId=619687
IEDriverServer.exe(IE驱动)
http://selenium-release.storage.googleapis.com/index.html