Advertisement
Guest User

Untitled

a guest
Aug 9th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import scratchapi
  2.  
  3. username = "Dylan5797"
  4. password = "discaa999"
  5.  
  6. s = scratchapi.ScratchUserSession(username, password)
  7. def get_followers(self, user):
  8. return self.lib.utils.request(path="/users/" + user + "/followers", server="api.scratch.mit.edu").json()
  9.  
  10. print(get_followers(s, 'Dylan5797')) # -> [... list of followers ...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement