I'm currently working on a Python script to perform web scraping process and have gone deep down the path of using Chromedriver as one of the packages. I would like this to operate it in the background without any pop-up windows. I'm using the option 'headless' while working on ChromeDriver and it is not showing the browser window, however, I still see the .exe file running.
I'm using this code to initiate ChromeDriver:
options = webdriver.ChromeOptions()
options.add_experimental_option("excludeSwitches",["ignore-certificate-errors"])
options.add_argument('headless')
options.add_argument('window-size=0x0')
chrome_driver_path = "D:\Python27\Scripts\chromedriver.exe"
I've tried to alter the window size to 0x0 but I'm not sure that did anything as the .exe file still popped up. I am using Python 2.7
Any ideas of how I can do this?