mac python selenium Chromedriver配置
Posted django_start
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mac python selenium Chromedriver配置相关的知识,希望对你有一定的参考价值。
安装selenium pip install selenium 下载Chromedriver http://npm.taobao.org/mirrors/chromedriver/ 将Chromedriver放在/usr/local/bin 最终代码 from selenium import webdriver import time driver = webdriver.Chrome() driver.get("http://www.baidu.com") time.sleep(3) driver.quit()
以上是关于mac python selenium Chromedriver配置的主要内容,如果未能解决你的问题,请参考以下文章