ScratchAPIClient Documentation
Note: This is not update often please check the github for more up-to-date info
Introduction
The ScratchAPIClient class provides a convenient interface for accessing data from the Scratch API using the "https://scratch-get-data.kokoiscool.repl.co" base URL. Github: https://github.com/kokofixcomputers/Scratch-getdata
Install: pip install scratch-getdata Import: from scratch_getdata import ScratchAPIClient
Api Key
You will need to signup at the api: https://scratch-get-data.kokoiscool.repl.co and get the api key first before using this.
Usage
-
Instantiating the ScratchAPIClient class: client = ScratchAPIClient()
-
Retrieving the follower count of a user: follower_count = client.get_follower_count(username, api_key)
-
Checking if a user is a Scratcher: is_scratcher = client.is_scratcher(username, api_key)
-
Retrieving the following count of a user: following_count = client.get_following_count(username, api_key)
-
Retrieving the "What I'm Working On" (WIWO) status of a user: wiwo_status = client.get_wiwo(username, api_key)
-
Retrieving the "About Me" information of a user: about_me = client.get_about_me(username, api_key)
-
Retrieving the messages of a user: messages = client.get_messages(username, api_key)
-
Retrieving the creator of a project: project_creator = client.get_project_creator(project_id, api_key)
-
Retrieving the name of a project: project_name = client.get_project_name(project_id), api_key
-
Retrieving the description of a project: project_description = client.get_project_description(project_id, api_key)
-
Retrieving the instructions of a project: project_instructions = client.get_project_instructions(project_id, api_key)
-
Retrieving the blocks of a project: project_blocks = client.get_project_blocks(project_id, api_key)
-
Retrieving the title of a forum post: forum_title = client.get_forum_title(post_id, api_key)
-
Retrieving the category of a forum post: forum_category = client.get_forum_category(post_id, api_key)
-
Retrieving the country of a Scratch user: user_country = client.get_scratch_user_country(username, api_key)
Note: Replace username with the desired Scratch username and project_id with the desired project ID.
API website: https://scratch-get-data.kokoiscool.repl.co
Credits
If you use GetData, please credit @kokofixcomputers.
Metadata
Release files for scratch-getdata 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scratch-getdata-1.0.8.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scratch_getdata-1.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / scratch-getdata-1.0.8.tar.gz
| Download URL | scratch-getdata-1.0.8.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
527dd45486c963068968c8ec96bcfe77bec046b4eccf1db74b90d3283e1ec26a
|
|
BLAKE2b-256 checksum How to use checksums |
c8ab3fd1b9d689ac803b8511ab4d2d58f5d974b09d8dec414d3a2e24220f3cbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / scratch_getdata-1.0.8-py3-none-any.whl
| Download URL | scratch_getdata-1.0.8-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f092ef3cdb4bf762a125863189ad522ee507130755828d45c40ee179593a1d6
|
|
BLAKE2b-256 checksum How to use checksums |
17a08ad01646d72cd6ef7cad5ac4a6f47d99256bfbda3c6914c62de2c9620874
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|