Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ config.ini
screenshots
downloaded_files
__pycache__

secrets.ini
7 changes: 7 additions & 0 deletions screenshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ def take_screenshot(tracker_name, driver=driver, is_load_at_runtime=False):

# Login and save screenshot
driver.find_element(By.CLASS_NAME, "auth-form__primary-button").click()

# 2FA is enabled, ask for the code
if driver.find_elements(By.ID, "code"):
code = input("Please enter the 2FA code: ")
code_field = driver.find_element(By.ID, "code")
code_field.send_keys(code)

take_screenshot("Aither")
print("Aither Screenshoted")

Expand Down