Web scraping 如何在后台完全运行web抓取?

Web scraping 如何在后台完全运行web抓取?,web-scraping,selenium-chromedriver,Web Scraping,Selenium Chromedriver,我已经用gui创建了一个web抓取应用程序。这是一个ecomm网站,它在网站上的单个产品文章上循环。我无法共享整个代码,但将共享与webdriver相关的设置 options = webdriver.ChromeOptions() options.add_argument("start-maximized") options.add_argument("--disable-notifications") options.add_argument('--h

我已经用gui创建了一个web抓取应用程序。这是一个ecomm网站,它在网站上的单个产品文章上循环。我无法共享整个代码,但将共享与webdriver相关的设置

options = webdriver.ChromeOptions() 
options.add_argument("start-maximized")
options.add_argument("--disable-notifications")
options.add_argument('--headless')
options.add_argument('--disable-blink-features=AutomationControlled')
options.add_experimental_option("excludeSwitches", ["enable-logging","enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
driver_path='chromedriver.exe'
我已经使用自动py到exe。运行可执行文件时,当它在单个文章链接上循环时,cmd窗口打开

当我从spyder运行.py脚本时,它不会出现。如何摆脱它