Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

ajsya/ScratchStatsDashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScratchStatsDashboard

Python Server code for Scratch project to show your Scratch Stats automatically without having to manually update it all the time.

Requirements

  • scratchconnect
  • requests
  • python-dotenv
$ pip install -r requirments.txt

How to setup / remix guide

Scratch

  1. Remix the Scratch Project: https://scratch.mit.edu/projects/619760935/
  2. Delete the cloud variable, it should be called Cloud.
  3. Create a new cloud variable. IMPORTANT: it must be called Cloud for the program to work.
  4. Feel free to mess around with the colors in the project. Make it your own!

Python

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.