███╗ ███╗ ██████╗ ███╗ ██╗██╗ ██╗███████╗██╗ ██╗██████╗ ██████╗ ███╗ ██╗████████╗████████╗██╗ ██╗██████╗ ███████╗
████╗ ████║██╔═══██╗████╗ ██║██║ ██╔╝██╔════╝╚██╗ ██╔╝██╔══██╗██╔═══██╗████╗ ██║╚══██╔══╝╚══██╔══╝╚██╗ ██╔╝██╔══██╗██╔════╝
██╔████╔██║██║ ██║██╔██╗ ██║█████╔╝ █████╗ ╚████╔╝ ██║ ██║██║ ██║██╔██╗ ██║ ██║ ██║ ╚████╔╝ ██████╔╝█████╗
██║╚██╔╝██║██║ ██║██║╚██╗██║██╔═██╗ ██╔══╝ ╚██╔╝ ██║ ██║██║ ██║██║╚██╗██║ ██║ ██║ ╚██╔╝ ██╔═══╝ ██╔══╝
██║ ╚═╝ ██║╚██████╔╝██║ ╚████║██║ ██╗███████╗ ██║ ██████╔╝╚██████╔╝██║ ╚████║ ██║ ██║ ██║ ██║ ███████╗
╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝
This Python script automates interactions with the Monkeytype website using Selenium. This program helps the user to gain high WPM without even typing.
- Automates typing words in the Monkeytype typing test
- Displays typing statistics (WPM, accuracy, and consistency)
- Prompts user to run the test again or exit
- Handles keyboard interruption gracefully
- Python 3.5 or above
- Google Chrome
- ChromeDriver
-
Clone the repository:
git clone https://github.com/ItsAbhinavM/monkeyDontType cd monkeyDontType
-
Create a virtual environment:
python -m venv venv or python3 -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- On Windows:
-
Install the required packages:
pip install selenium pip install webdriver_manager
-
Run the script:
python monkeytype_automation.py
-
The script will open a Chrome browser and navigate to the Monkeytype website. Manually accept the cookies for a better experience.
-
The script will start the typing test automatically. It will type words and display your typing statistics (WPM, accuracy, and consistency) once the test is complete.
-
After the test, you will be prompted to run the test again or exit:
do you wish to run again (y/n) :
-
If you choose 'y', the script will click the 'Next test' button and start a new test.
-
If you choose 'n', the script will exit and close the browser.
get_word_from_web(url, delay=0.05)
: Initializes the Chrome driver, navigates to the given URL, and starts the typing test.identifyWords(driver, delay)
: Identifies and types words on the Monkeytype website.endCredits(driver)
: Displays typing statistics (WPM, accuracy, consistency) and prompts the user to run the test again or exit.runAgain(driver)
: Handles the user's choice to run the test again or exit.