로딩
요청 처리 중입니다...

selenium 크롬창 띄우지 않고 크롤링하기

 selenium 크롬창 띄우지 않고 크롤링하기

옵션을 주지 않고 실행하면 크롬창이 하나 출력되고 크롤링이 된다. 이 새로운 창을 띄우지 않고 실행하는 방법이다. from selenium import webdriver from selenium.webdriver.chrome.service import Service from selenium.webdriver.common.by import By from webdriver_manager.chrome import ChromeDriverManager options = webdriver.ChromeOptions() options.add_argument('headless') options.add_argument('window-size=1920x1080') options.add_argument("disable-gpu") driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), chrome_options=options)...

# headless # selenium # webdriver옵션 # 창없는크롬 # 파이썬