A python library for interacting with any kahoot quiz, as a participant!
- Joining a game
- Reactions
- Avatars
- Answering single choice questions
- Answering multiple choice questions
- Answering True or False questions
- Displaying points
- Displaying ranking
- Finishing a game
- Error handling (this name is taken, pin is invalid, kicked out, etc.)
Kahoot-CLI is designed in mind of devices that can't show a browser tab, like handheld devices. You can also adapt the UI to your liking.
Note
This uses the Chrome webdriver, that has been trimmed down to use around 256mb of ram. I have not tested if it works with other browsers, or what happens if you don't have chrome installed.
Kahoot_CLI has 2 modes, CLI and Module.
To use the terminal mode, use:
py -m kahoot_cli
You'll be prompted to input the session pin and your username, and you'll be in the session! See your name on the screen?
To import this as a module, you can use:
from kahoot_cli import *
Note
Yes, I know this isn't the best way to do it, but I haven't found a way that imports everything, that's not this.
For documentation, check out the wiki!