Advertisement
paster442

followers

Sep 5th, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  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