Browse Source

Add requirements.txt

main
Markus Frank 2 weeks ago
parent
commit
a240459320
  1. 3
      main.py

3
main.py

@ -49,7 +49,6 @@ def check_date(due_date, recipient_email):
def check_books(user, pw, recipient_email): def check_books(user, pw, recipient_email):
options = Options() options = Options()
options.add_argument("--headless") options.add_argument("--headless")
options.binary_location = "/usr/bin/firefox" # Adjust if necessary
driver = webdriver.Firefox(options=options) driver = webdriver.Firefox(options=options)
try: try:
# Navigate to the login page # Navigate to the login page
@ -71,7 +70,7 @@ def check_books(user, pw, recipient_email):
login_button.click() login_button.click()
# Wait for login to complete # Wait for login to complete
wait = WebDriverWait(driver, 10) time.sleep(5)
# Check if login was successful # Check if login was successful
if "Mein Konto" in driver.page_source: if "Mein Konto" in driver.page_source:

Loading…
Cancel
Save