I performed a GET request from lichess.org, API reference: https://lichess.org/api#operation/apiGamesUser
import requests
import json
import ndjson
response = requests.get('https://lichess.org/api/games/user/ardito_bryan', params={'max':10})
I am unable to decode ndjson, python library here: https://pypi.org/project/ndjson/ According to the library reference I should be using:
items = response.json(cls=ndjson.Decoder)
It does not work, runs error:
JSONDecodeError: Expecting value: line 1 column 3 (char 2)
Ty.