Skip to content

Instantly share code, notes, and snippets.

@muhammadyana
Last active April 8, 2022 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save muhammadyana/cb10c16b3c1504b9a4250dc4dc6af1e6 to your computer and use it in GitHub Desktop.
Save muhammadyana/cb10c16b3c1504b9a4250dc4dc6af1e6 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
@muhammadyana
Copy link
Author

muhammadyana commented Apr 8, 2022

requirement

selenium
webdriver-manager

create filerequirement.txt and copy above code then run pip3 install -r requirements.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment