Browse Source

switched to chrome as browser

main
Markus Frank 2 weeks ago
parent
commit
e20aaf994f
  1. 1
      main.py

1
main.py

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

Loading…
Cancel
Save