Advertisement
paster442

Very simple fav-bot for Scratch in Python

Jul 10th, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. from scratchclient import ScratchSession #https://scratch.mit.edu/discuss/topic/506810/
  2. session = ScratchSession("username", "password") #here goes your scratch username and password
  3.  
  4. infinity = 999999999 #a big number
  5. for i in range(104, infinity): #earliest project has the id 104
  6.     try:
  7.         session.get_project(i).favorite()
  8.         print(i) #so you know that the program favorited a project
  9.     except KeyError: #if project doesn't exist
  10.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement