Apr-11-2020, 09:52 AM
Hi guys,
I am running selenium webdriver with headless Chrome (my basic code below) to scrape multiple web pages.
Does anybody know the correct code to hide the chrome.exe console?
I am running selenium webdriver with headless Chrome (my basic code below) to scrape multiple web pages.
Does anybody know the correct code to hide the chrome.exe console?
#set up selenium webdriver (headless) option = webdriver.ChromeOptions() #option.add_argument("--window-size=1920,1080") #option.add_argument("--start-maximized") option.add_argument("--headless") browser = webdriver.Chrome('C:\\Users\\chromedriver.exe',options = option) browser.get(url)