Try scratchconnect! A python library to connect Scratch API and get the statistics! Go here https://pypi.org/project/scratchconnect/
Hi!