python+selenium的使用

selenium的配置指南:https://www.seleniumhq.org/download/

chromedriver下载网页:http://chromedriver.storage.googleapis.com/index.html?path=2.33/

 

from selenium import webdriver

chromedriver_path = "\\chromedriver.exe" # chromedriver的安装地址
url = "****.com" # 待打开的网页地址
browser = webdriver.Chrome(chromedriver_path)
browser.get(url)

 

posted @ 2018-02-24 17:11  ystwyfe  阅读(175)  评论(0编辑  收藏  举报