Files
classquiz-ai/classquiz/kahoot_importer
2026-03-25 21:18:09 +01:00
..
2026-03-25 21:18:09 +01:00
2025-11-01 15:57:10 +01:00
2025-11-01 15:57:10 +01:00
2025-11-01 15:57:10 +01:00
2025-11-01 15:57:10 +01:00

Kahoot-Importer

With this package you can search kahoot-quizzes and get their data.

This library is also tested.

Get

from classquiz.kahoot_importer.get import get, _Response
from asyncio import run
# _Response is a pydantic-object, so you have access to
# .dict() or .model_dump_json(exclude={"kahoot"})

async def main():
    kahoot_quiz: _Response = await get("GAME_ID")
    print(kahoot_quiz.model_dump_json(exclude={"kahoot"}))
run(main())
from classquiz.kahoot_importer.search import search, _Response
from asyncio import run
# _Response ia a pydantic-object, so you have access to
# .dict() or .model_dump_json(exclude={"kahoot"})

async def main():
    kahoot_quizzes: _Response = await search("QUERY")
    print(kahoot_quizzes.model_dump_json())
run(main())

Import-Quiz

This script is meant just to be used with classquiz, not alone.

Kahoot! and the K! logo are trademarks of Kahoot! AS