A module/CLI tool to interact with a kahoot client (via Selenium) and play a quiz.
Project description
Kahoot_CLI
A python library for interacting with any kahoot quiz, as a participant!
Features:
- 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.)
Why would anyone need this, since this just uses Selenium?
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.
Usage
Kahoot_CLI has 2 modes, CLI and Module.
CLI
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?
Module
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!
Requirements
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kahoot_cli-1.0.2.tar.gz.
File metadata
- Download URL: kahoot_cli-1.0.2.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22cb3f16b7079c9ab54b6ac368106d20f76a3164e65829050e3cb077e0ed4779
|
|
| MD5 |
6b956042b593447f2e6880cb1a86d799
|
|
| BLAKE2b-256 |
efe44839eb60c2b653a762dd9a7d29bcff25471f7549e9ce4757e7ad965db948
|
File details
Details for the file kahoot_cli-1.0.2-py3-none-any.whl.
File metadata
- Download URL: kahoot_cli-1.0.2-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d942715fd958f5ef777cecd5e199c9603ee3dc3de2a81b6b047576488a89606
|
|
| MD5 |
964ec8c7d081cb9b46cab9550b2769d4
|
|
| BLAKE2b-256 |
7552f84c6fd8af6d9b33550f0c7d5b13ddaa98b78e47293f64f24425ba522c0f
|