This is a script that automatically screenshots a Kahoot game's questions and options, processes them, and then consults with OpenAI's GPT-4 to get the most likely answer. View the video here Kahoot god video
- Python 3.6 or above
- Tesseract OCR
- OpenAI API key
-
Clone the repository
-
Install the necessary Python packages (make a venv) and then in the terminal type
pip install -r requirements.txt -
Make sure you have Tesseract installed. If not, you can download it from here. Remember the path where
tesseract.exeis located. -
Update the
pytesseract.pytesseract.tesseract_cmdin the script with your path totesseract.exe. -
Update the openai.api_key in the script with your OpenAI API key. If you don't have one, you can sign up at OpenAI.
-
Update the coordinates in the scripts to fit your needs, if the current ones don't work
- Launch your Kahoot game (or whatever you wanna do) and make sure it's visible on your screen.
- Run the script with this command:
python [script-name.py]ex:python kahoot_god.py - Whenever you're ready to run the script press
ctrl+alt+t(You can modify these in the script too)
The script uses screen coordinates to determine where to screenshot for questions and answers. You may need to adjust these if you have a different screen resolution or if Kahoot's layout changes.
The bot makes educated guesses based on the information it receives. It's not guaranteed to always get the right answer, especially if questions require knowledge of images or videos.
This bot is made for use on a 1440p screen. It will not work on any other resolution
Contributions are welcome! Please make sure to test your changes thoroughly before submitting a pull request.