From c6b159905b865f0b93a6bd574e8517cbecac01d1 Mon Sep 17 00:00:00 2001 From: Logan Williams Date: Mon, 28 Feb 2022 11:45:32 +0100 Subject: [PATCH] Switch to headless Firefox --- auto_archive.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auto_archive.py b/auto_archive.py index 541c0a1..fba17f4 100644 --- a/auto_archive.py +++ b/auto_archive.py @@ -70,7 +70,9 @@ def process_sheet(sheet, header=1): secret=os.getenv('DO_SPACES_SECRET') ) - driver = webdriver.Firefox() + options = webdriver.FirefoxOptions() + options.headless = True + driver = webdriver.Firefox(options=options) driver.set_window_size(1400, 2000) # loop through worksheets to check