consolidate browser settings

This commit is contained in:
Reinier van der Leer
2023-04-18 16:15:37 +02:00
parent 9d14b113a3
commit d6b1aa677d
3 changed files with 12 additions and 9 deletions

View File

@@ -83,7 +83,7 @@ def scrape_text_with_selenium(url: str) -> tuple[WebDriver, str]:
options.add_argument("--remote-debugging-port=9222")
options.add_argument("--no-sandbox")
if CFG.headless_browser:
if CFG.selenium_headless:
options.add_argument("--headless")
options.add_argument("--disable-gpu")