728x90
1, Install Chrome Specific Version On Ubuntu (version: 114.0.5735.90)
wget https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb
sudo apt-get install -y ./google-chrome-stable_114.0.5735.90-1_amd64.deb
2. Install Chrome Driver same version
sudo wget https://chromedriver.storage.googleapis.com/114.0.5735.90/chromedriver_linux64.zip
sudo unzip chromedriver_linux64.zip
3. Install selenium
pip3 install selenium
4. example code
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
import time
driver = webdriver.Chrome(ChromeDriverManager(version='114.0.5735.90').install())
try:
driver.get('https://naver.com')
time.sleep(5)
finally:
driver.quit()
728x90
'Linux' 카테고리의 다른 글
[Linux] CmakeLists.txt 작성 법 (0) | 2023.06.27 |
---|---|
[Jetson] CPU on, off 방법 (0) | 2023.06.07 |
라즈베리파이 ca-certificates error 해결법 (0) | 2023.05.23 |
jetson 포맷부터 deepstream 설치까지 (0) | 2023.05.04 |
vscode 원격 접속 방법 (0) | 2023.04.26 |