Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from scratchclient import ScratchSession as login
- from random import shuffle
- from requests import get
- from time import sleep
- session = login("username", "password") # replace this with your Scratch account username and password
- print("Logged in")
- a = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
- users = list()
- for l1 in a:
- for l2 in a:
- for l3 in a:
- users.append(l1+l2+l3)
- shuffle(users)
- users.remove("FOC")
- print("Generated usernames (" + str(len(users)) + ")\n")
- i = 1
- for user in users:
- try:
- session.get_user(user).follow()
- print(str(i) + ") Followed @" + get(f"https://api.scratch.mit.edu/users/{user}/").json()["username"])
- i += 1
- except:
- pass
- sleep(8.0)
Add Comment
Please, Sign In to add comment