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

Method project_count

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

Source from the content-addressed store, hash-verified

499 return data_control == "unfollow" # True if unfollow, False if not
500
501 def project_count(self):
502 with requests.no_error_handling():
503 text = requests.get(
504 f"https://scratch.mit.edu/users/{self.username}/projects/",
505 headers=self._headers,
506 ).text
507 return commons.webscrape_count(text, "Shared Projects (", ")")
508
509 def studio_count(self):
510 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