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
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.exe
is located.
Update the pytesseract.pytesseract.tesseract_cmd
in the script with your path to tesseract.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
python [script-name.py]
ex: python kahoot_god.py
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.