chessdotcom.endpoints.current_daily_puzzle¶
Information about the daily puzzle found in www.chess.com.
API doc: https://www.chess.com/news/view/published-data-api#pubapi-daily-puzzle
- chessdotcom.endpoints.current_daily_puzzle.get_current_daily_puzzle(tts=0, **request_options) GetCurrentDailyPuzzleResponse¶
- Parameters:
tts – the time the client will wait before making the first request.
- Returns:
GetCurrentDailyPuzzleResponseobject containing information about the daily puzzle found in www.chess.com.
- class chessdotcom.endpoints.current_daily_puzzle.GetCurrentDailyPuzzleResponse(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.current_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.