Created
August 1, 2021 11:23
-
-
Save SarveshMD/54bedd516b3770875cc8abd74ec31da1 to your computer and use it in GitHub Desktop.
Bot for typethealphabet.app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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