在终端中输入:sudo apt-get install python3-pip
在终端中输入:sudo pip3 install selenium
在终端中输入: LATEST=$(wget -q -O - http://chromedriver.storage.googleapis.com/LATEST_RELEASE)
在终端中输入:wget http://chromedriver.storage.googleapis.com/$LATEST/chromedriver_linux64.zip
在终端中输入:unzip chromedriver_linux64.zip
在终端中输入:sudo -S mv chromedriver /usr/local/bin/
https://www.google.cn/intl/en_uk/chrome/browser-tools/
ThinKinG@ThinKinG-PC:~$ python3
Python 3.7.3 (default, Mar 9 2022, 03:38:16)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> d = webdriver.Chrome()
>>> d.get("https://bbs.deepin.org/")
>>>