GeckoDriver,chromedriver,IEDriverServer淘宝镜像

http://npm.taobao.org/mirrors/chromedriver/

Firefox:http://npm.taobao.org/mirrors/geckodriver/

http://npm.taobao.org/mirrors/selenium/

版本下有IEDriverServer: http://npm.taobao.org/mirrors/selenium/2.40/IEDriverServer_x64_2.40.0.zip

http://npm.taobao.org/mirrors/operadriver/

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple selenium
#!/usr/bin/python
# -*- coding: utf-8 -*-
from selenium import webdriver
import time

browser = webdriver.Firefox()
# browser = webdriver.Ie()
# browser = webdriver.Chrome()
browser.get("http://www.baidu.com")
time.sleep(5)
browser.quit()
posted @ 2020-06-20 10:01  船长博客  阅读(820)  评论(0编辑  收藏  举报
永远相信美好的事情即将发生!