Python Server code for Scratch project to show your Scratch Stats automatically without having to manually update it all the time.
- scratchconnect
- requests
- python-dotenv
$ pip install -r requirments.txt
- Remix the Scratch Project: https://scratch.mit.edu/projects/619760935/
- Delete the cloud variable, it should be called Cloud.
- Create a new cloud variable. IMPORTANT: it must be called Cloud for the program to work.
- Feel free to mess around with the colors in the project. Make it your own!
Follow these commands closely to ensure that your program works correctly:
Clone the repository.
$ git clone https://github.com/ajsya/ScratchStatsDashboard.git
Install the requirements:
Mac/Linux
$ python3 -m pip install -r requirements.txt
Windows
$ pip install -r requirements.txt
Open .env. Edit the two variables in the file. These are your bot account's username and password. The account you provide does not have to have Scratcher status, however, do not use your main account since ever time the program is ran you will be logged out.
Open main.py. Edit the two settings at the top of the program. These should be the username of the Scratch acount you want the program to get the stats for and update the project with, and the id of your project that you want the cloud variables updated in (the one you just created earlier).
Save the file and run it. You should be done! Let me know if you have any errors or problems setting it up. Please run this program at your own risk.