chessdotcom.endpoints.country_players¶
List of usernames for players who identify themselves as being in this country.
API doc: https://www.chess.com/news/view/published-data-api#pubapi-endpoint-country-players
- chessdotcom.endpoints.country_players.get_country_players(iso: str, tts=0, **request_options) GetCountryPlayersResponse¶
- Parameters:
iso – country’s 2-character ISO 3166 code.
tts – the time the client will wait before making the first request.
- Returns:
GetCountryPlayersResponseobject containing a list of usernames for players who identify themselves as being in this country.
- class chessdotcom.endpoints.country_players.GetCountryPlayersResponse(json, text, players)¶
- Variables:
players – Holds list of URLs for players.
json – The JSON response from the API.
text – The raw text response from the API.