Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import scratchapi
- username = "Dylan5797"
- password = "discaa999"
- s = scratchapi.ScratchUserSession(username, password)
- def get_followers(self, user):
- return self.lib.utils.request(path="/users/" + user + "/followers", server="api.scratch.mit.edu").json()
- print(get_followers(s, 'Dylan5797')) # -> [... list of followers ...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement