Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kahoot_cli-1.0.1.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kahoot_cli-1.0.1-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file kahoot_cli-1.0.1.tar.gz.

File metadata

  • Download URL: kahoot_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for kahoot_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 cebeaad0c581924bf34d320643ef3bcdef712dca504a782a3885ab9d825e2142
MD5 853e86676ea5e5f3368ea4ee8b9fac5f
BLAKE2b-256 bd5e8d34df4722134035a4d380cfb41713dba71c00ac9a590d3f70f32c6beb25

See more details on using hashes here.

File details

Details for the file kahoot_cli-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: kahoot_cli-1.0.1-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.12

File hashes

Hashes for kahoot_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a00fffdce398686e1f970c233f5875f4531638fb95739bf94e573dd1b6d233d5
MD5 f1cfcc7a90959a5a165565de72e59013
BLAKE2b-256 6e3bb3c823852bb75cec833a2b2355351329c0734d7bf5ee3b1a1b6097b9d7e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page