chessdotcom.endpoints.random_daily_puzzle¶
Information about a randomly picked daily puzzle.
API doc: https://www.chess.com/news/view/published-data-api#pubapi-random-daily-puzzle
- chessdotcom.endpoints.random_daily_puzzle.get_random_daily_puzzle(tts=0, **request_options) GetRandomDailyPuzzleResponse¶
- Parameters:
tts – the time the client will wait before making the first request.
- Returns:
GetRandomDailyPuzzleResponseobject containing information about a randomly picked daily puzzle.
- class chessdotcom.endpoints.random_daily_puzzle.GetRandomDailyPuzzleResponse(json, text, puzzle)¶
- Variables:
json – The JSON response from the API.
text – The raw text response from the API.
puzzle – Holds the
Puzzleobject.
- class chessdotcom.endpoints.random_daily_puzzle.Puzzle(title: str | None, url: str | None, publish_time: int | None, fen: str | None, pgn: str | None, image: str | None)¶
- Variables:
title – Title of the puzzle.
url – URL for the puzzle.
publish_time – Time the puzzle was published.
fen – FEN string of the puzzle.
pgn – PGN string of the puzzle.
image – URL for the puzzle image.
publish_datetime – Date and time the puzzle was published.