You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
659 B
20 lines
659 B
import time
|
|
|
|
from scrape import login_delay
|
|
|
|
# Step 0: Input your tesla account details
|
|
tesla_account_email = "YOUR TESLA EMAIL HERE"
|
|
tesla_account_password = "YOUR TESLA PASSWORD HERE"
|
|
|
|
def tesla_login(driver):
|
|
driver.get("https://tesla.com/teslaaccount")
|
|
driver.find_element_by_css_selector("#form-input-identity").send_keys(tesla_account_email)
|
|
time.sleep(2)
|
|
driver.find_element_by_css_selector("#form-submit-continue").click()
|
|
time.sleep(2)
|
|
driver.find_element_by_css_selector("#form-input-credential").send_keys(tesla_account_password)
|
|
time.sleep(2)
|
|
driver.find_element_by_css_selector("#form-submit-continue").click()
|
|
|
|
return driver
|
|
|