http://chromedriver.storage.googleapis.com/index.html
https://github.com/mozilla/geckodriver/releases
把下载好的chromedriver.exe 或者 geckodriver.exe,解压后放到python36目录下(或者python36目录下的scripts),如果是pycharm建的project,就是 C:\Users\YING\PycharmProjects\cmap\venv\Scripts 路径下
location = 'D:/Program Files/Mozilla Firefox/firefox.exe'
driver = webdriver.Firefox(firefox_binary=location)
```python
from selenium import webdriver
url=“www.baidu.com”
browser = webdriver.Chrome() #打开浏览器
browser.get(url) #进入相关网站
html=browser.page_source #获取网站源码
from selenium import webdriver
# 6 谷歌测试:
```python
from selenium import webdriver
url=“www.baidu.com”
driver = webdriver.Firefox)
driver.get(url)
html=driver.page_source #获取网站源码