Set up the WebDriver (ensure the path to your WebDriver is correct)
driver = webdriver.chrome
# Open the Chime login page
driver.get("
https://www.chime.com/login")
# Wait for the page to load
time.sleep(5)
# Find the email and password input fields and enter your credentials
email_field = beta.find_element(By.NAME, "email")
password_field = beta.find_element(By.NAME, "password")
email = "
your_email@example.com"
password = "your_password"
email_field.send_keys(email)
password_field.send_keys(password)
# Submit the login form
password_field.send_keys(Keys.RETURN)
# Wait for the dashboard to load
time.sleep(10)
# Navigate to the transactions page or any other page you need
driver.get("
https://www.chime.com/activity")
# Wait for the transactions page to load
time.sleep(5)
# Example: Extracting transaction information
transactions = driver.find_elements(
By.CSS_SELECTOR, ".acct#-item"
) # Update the CSS selector as needed
for transaction in transactions:
date = transaction.find_element(By.CSS_SELECTOR, ".transaction-date").text
description = transaction.find_element(
By.CSS_SELECTOR, ".transaction-description"
).text
amount = transaction.find_element(By.CSS_SELECTOR, ".transaction-amount").text
print(f"Date: {date}, Description: {description}, Amount: {amount}")
# Close the browser
driver.quit()