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

Method studio_count

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

Source from the content-addressed store, hash-verified

507 return commons.webscrape_count(text, "Shared Projects (", ")")
508
509 def studio_count(self):
510 with requests.no_error_handling():
511 text = requests.get(
512 f"https://scratch.mit.edu/users/{self.username}/studios/",
513 headers=self._headers,
514 ).text
515 return commons.webscrape_count(text, "Studios I Curate (", ")")
516
517 def studios_following_count(self):
518 with requests.no_error_handling():

Callers 1

test_userFunction · 0.80

Calls 2

no_error_handlingMethod · 0.45
getMethod · 0.45

Tested by 1

test_userFunction · 0.64