This button retrieves the scores directly from the API using the backend source from the API Provider — api.balldontlie.io.
The libraries used are Requests libraries and JSON libraries .
Mainly we use GET requests to get a JSON response which fetches data from the URL that includes a specific parameter that calls the scores from a specific date. We then check if the response is valid or not . The response which is in JSON format is then converted to python dictionaries