Switch to headless Firefox

This commit is contained in:
Logan Williams
2022-02-28 11:45:32 +01:00
parent 6ebce974f0
commit c6b159905b

View File

@@ -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