/typeracer-bot

Script that plays Typeracer practice mode automatically

Primary LanguagePython

typeracer-bot

A python script that plays Typeracer practice mode automatically

The Typeracer 'Cheating Universe' sandbox, as announced here, is used in the script. The sandbox is separate to the main site and where anyone is free to test out their cheats / hacks without getting banned.

Setup

  1. Clone the repo and navigate to it

  2. Set up a virtual environment for project and install dependencies from requirements.txt in an active venv

    python -m venv venv/
    source venv/Scripts/activate
    pip install -r requirements.txt
  3. Download correct version of ChromeDriver and put into repo.

    • If not using Chrome, get the WebDriver for your chosen browser and update the line which creates the instance of WebDriver

Run

  1. Execute in IDE / text editor / command line
python typeracer-bot.py

Useful Links

  • Selenium Docs
  • Troubleshooting
    • Evaluate and validate XPath/CSS selectors in Chrome Developer Tools: Link
    • Error Handling in Selenium on Python: Link
  • Virtual Environments
    • The Hitchhiker's Guide to Python - Virtual Envs: Link
    • A Guide to Python’s Virtual Environments: Link