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

Method search_studios

scratchattach/site/session.py:677–688  ·  view source on GitHub ↗
(
        self, *, query: str = "", mode: str = "trending", language: str = "en", limit: int = 40, offset: int = 0
    )

Source from the content-addressed store, hash-verified

675 return commons.parse_object_list(response, project.Project, self)
676
677 def search_studios(
678 self, *, query: str = "", mode: str = "trending", language: str = "en", limit: int = 40, offset: int = 0
679 ) -> list[studio.Studio]:
680 query = f"&q={query}" if query else ""
681
682 response = commons.api_iterative(
683 f"https://api.scratch.mit.edu/search/studios",
684 limit=limit,
685 offset=offset,
686 add_params=f"&language={language}&mode={mode}{query}",
687 )
688 return commons.parse_object_list(response, studio.Studio, self)
689
690 def explore_studios(
691 self, *, query: str = "", mode: str = "trending", language: str = "en", limit: int = 40, offset: int = 0

Callers 2

test_searchFunction · 0.80
test_studioFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_searchFunction · 0.64
test_studioFunction · 0.64