MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / follower_count

Method follower_count

scratchattach/site/user.py:381–387  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

379 return [user.username for user in self.unfollowers()]
380
381 def follower_count(self):
382 with requests.no_error_handling():
383 text = requests.get(
384 f"https://scratch.mit.edu/users/{self.username}/followers/",
385 headers=self._headers,
386 ).text
387 return commons.webscrape_count(text, "Followers (", ")")
388
389 def following_count(self):
390 with requests.no_error_handling():

Callers 2

unfollowersMethod · 0.95
test_userFunction · 0.80

Calls 2

no_error_handlingMethod · 0.45
getMethod · 0.45

Tested by 1

test_userFunction · 0.64