Skip to content

Instantly share code, notes, and snippets.

@SarveshMD
Created August 1, 2021 11:23
Show Gist options
  • Save SarveshMD/54bedd516b3770875cc8abd74ec31da1 to your computer and use it in GitHub Desktop.
Save SarveshMD/54bedd516b3770875cc8abd74ec31da1 to your computer and use it in GitHub Desktop.
Bot for typethealphabet.app
from selenium import webdriver
from time import sleep
alphabets = "abcdefghijklmnopqrstuvwxyz"
howLongShouldITake = int(input("How many seconds should I take ?\n"))
browser = webdriver.Chrome("./chromedriver")
browser.get("https://typethealphabet.app")
inputElement = browser.find_element_by_id('game-form-input')
if howLongShouldITake < 1:
inputElement.send_keys(alphabets) # Fastest - 0.0 Seconds ;)
quit()
for alphabet in alphabets:
inputElement.send_keys(alphabet)
sleep(howLongShouldITake/26)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment