Skip to content

Instantly share code, notes, and snippets.

@absyah
Forked from muhammadyana/talenta.py
Created April 8, 2022 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save absyah/fdf7742326252bcf6eef4da1128eb90f to your computer and use it in GitHub Desktop.
Save absyah/fdf7742326252bcf6eef4da1128eb90f to your computer and use it in GitHub Desktop.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import ElementClickInterceptedException, NoSuchElementException
from time import sleep
from selenium.common.exceptions import NoSuchElementException
EMAIL = "email@quipper.com"
PASSWORD = "password"
print("======= talenta Bot V1 ========")
# chrome_driver_path = YOUR CHROME DRIVER PATH
driver = webdriver.Chrome()
# open the url
driver.get("https://account.mekari.com/users/sign_in?client_id=TAL-73645&return_to=L2F1dGg_Y2xpZW50X2lkPVRBTC03MzY0NSZyZXNwb25zZV90eXBlPWNvZGUmc2NvcGU9c3NvOnByb2ZpbGU%3D")
# Fill Credentials
email = driver.find_element_by_xpath('//*[@id="user_email"]')
password = driver.find_element_by_xpath('//*[@id="user_password"]')
email.send_keys(EMAIL)
password.send_keys(PASSWORD)
password.send_keys(Keys.ENTER)
# Navigate to Live Attendance Page
sleep(5)
attendance_button = driver.find_element_by_xpath('//*[@id="tl-dashboard-wrapper"]/div[2]/div/div[2]/div/a[1]')
attendance_button.click()
# and you can continue by click the clock in or clokc out button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment