switched to chrome as browser

This commit is contained in:
2025-01-18 22:09:46 +01:00
parent 54661883ff
commit e20aaf994f

View File

@@ -52,6 +52,7 @@ def check_books(user, pw, recipient_email):
options.add_argument("--headless") # Run Chrome in headless mode options.add_argument("--headless") # Run Chrome in headless mode
options.add_argument("--disable-gpu") # Disable GPU acceleration options.add_argument("--disable-gpu") # Disable GPU acceleration
options.add_argument("--no-sandbox") # Required for some environments options.add_argument("--no-sandbox") # Required for some environments
options.add_argument("--incognito")
driver = webdriver.Chrome(options=options) # Use ChromeDriver driver = webdriver.Chrome(options=options) # Use ChromeDriver
try: try: