Skip to main content

A library can get scratch api

Project description

This project gets the scratch api. Everything in this project code by me (except some needed library). Big credit to TimMcCool(Scratcher) for example codes. (This project is not related to TimMcCool)
Install: pip install tscratchapiget
Change log: https://github.com/Tony14261/tscratchapiget/blob/main/changelog.md
Report bugs or request new features here: https://github.com/Tony14261/tscratchapiget/issues
Contact me (Discord): Tony14261#2089

Functions
User features(v0.2.7)(Updated commands in v0.3.0) (New commands are at the top):
Note: Remeber to from tscratchapiget import user
- Get if a username exists exists([username]) EX: user.exists('Scratch_Tony_14261') if yes: Return 'User exists' if not: Return 'User does not exist'
- Get a user unread-message-count message_count('[user]') EX: user.message_count('TimMcCool')
- Get a user id id('[user]') EX: user.id('griffpatch')
- Get if a user is a scratchteam scratchteam('[user]') EX: user.scratchteam('ScratchCat') #Return 'True'
- Get user join date join('[user]') EX: user.join('Will_Wam')#Return '2013-11-25T19:52:29.000Z'
- Get a user pfp(link) pfp_link('[user]') EX: user.pfp_link('Scratch_Tony_14261') +Bonus Feature: Open that pfp link in browser. Change that to pfp_link_open('[Username]')
- Get user About-Me section aboutme('[user]') EX: user.aboutme('WazzoTV')
- Get user What-I'm-Working-On section wiwo('[username]') EX: user.wiwo('ceebee')
- Get user country country(['user]') EX: user.country(['')
- Get user follower count followers('[user]') Ex: user.followers('sharkyshar')
- Get user following count following('[user]') EX: user.followers('atomicmagicnumber')

Project features(v0.3.6)
Note: Remember to from tscratchapiget import project
ONLY FILL IN [PROJECT ID] NOT A FULL LINK
- Get a project title title('[Project_ID]') EX: project.title('105500895')
- Get a project description description('[Project_ID]') EX: project.description('105500895')
- Get a project views views('[Project_ID]') EX: project.views('105500895')
- Get a project loves loves('[Project_ID]') EX: project.loves('105500895')
- Get a project favorites favorites('[Project_ID]') EX: project.favorites('105500895')
- Get a project remixes remixes('[Project_ID]') EX: project.remixes('105500895')
- Get if a project exists exists('[Project_ID]') EX: project.exists('105500895') This check returns to your terminal
- Open a project in a web browser open('[Project_ID]') EX: project.open('105500895')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tscratchapiget-0.3.8.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

tscratchapiget-0.3.8-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page