1.pip 安装 selenium
sudo -H pip install Selenium
2.安装geckodriver
到git (https://github.com/mozilla/geckodriver/releases)下载
然后
sudo mv /Users/wuwei/Downloads/geckodriver /usr/local/bin/
3.下载chrome对应的插件
https://sites.google.com/a/chromium.org/chromedriver/home
然后一样,移动到/usr/local/bin/(用户放置自己的可执行程序的地方)
sudo mv /Users/wuwei/Downloads/chromedriver /usr/local/bin/
网友评论