Skip to main content
Join the official Python Developers Survey 2026 and have a chance to win a prize  Take the 2026 survey!

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

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