标签:
1、下载chromedriver.exe 入在chrome 浏览器目录下
from selenium import webdriver
import os
chromedriver = "C:\Users\AppData\Local\Google\Chrome\Application\chromedriver.exe"
os.environ["webdriver.chrome.driver"] = chromedriver
driver = webdriver.Chrome(chromedriver)
driver.get("http://baidu.com")
driver.quit()
标签:
原文地址:http://www.cnblogs.com/heting/p/5773664.html