A Module to fetch scratch things from ScratchGetData
Project description
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
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for scratch_getdata-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbe6b4f7512f495a5fbce1dbf3d12084c73d39fb7a4ba3f15e747f505f0685bb |
|
MD5 | e6ec061c646a6e4d3e0d26785f5a11f0 |
|
BLAKE2b-256 | 9b4e3acc8a28571f7ef7248343f15ae1f068391adf1b73a2ea0ae090616a91d2 |