Advertisement
Guest User

Scratch Followers

a guest
Jul 30th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     def followers(self,user):
  2.         followers = int(re.search(r'Followers \(([0-9]+)\)', requests.get(f'https://scratch.mit.edu/users/{user}/followers').text, re.I).group(1))
  3.         return f'{followers} on [scratch](https://scratch.mit.edu/users/{user}/followers)'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement