chromedriver 버전 업 될 때 마다 새로 chromedriver 다운 받는 거 이제는 안해도 된데요
pip install webdriver_manager
https://www.youtube.com/watch?v=zRKm0BkzSM8&list=RDCMUCdNSo3yB5-FRTFGbUNKNnwQ&start_radio=1
selenium_kimfl_no_down.py--------------------
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
options = Options()
options.add_experimental_option('detach',True) # 브라우저 바로 닫힘 방지
options.add_experimental_option('excludeSwitches',['enable-logging']) # 불필요한 메시지 제거
service = Service(ChromeDriverManager(path="DRIVER").install())
driver = webdriver.Chrome(service=service, options=options)
driver.get('https://naver.com')
====================
https://youtu.be/Mw2modVN-II?si=EOn4dKE2sjRgt2D_
2023-12-01
https://www.youtube.com/watch?v=AzPXHXv9d3Q
'컴퓨터 > Python' 카테고리의 다른 글
pyqt5 qlistwidget 바로바로 표시하기 (0) | 2022.09.23 |
---|---|
python 파일 합치기 (0) | 2022.09.14 |
excel pandas pyqt5 qtablewidget email 급여명세서 (0) | 2022.09.05 |
excel to pdf (0) | 2022.08.28 |
AI코인 email (0) | 2022.08.28 |