Skip to main content

A library can get scratch's 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

Note: The basics are done. I think I have to use https://scratchdb.lefty.one/v3/ (ScratchDB by Lefty One). I fixed many bugs in this version. There are some new beta features. If anything goes wrong, contact me or report bugs on github page.
Remember to import everything in tscratchapiget: from tscratchapiget import user, project, studio

User features(v0.2.7 to v0.3.0) (New commands are at the top):
- 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)
Fill in the [Project ID] with the ID of a project
- 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')

Studio features(v0.4.1 to v0.4.5)
Fill in the [Studio ID] with the ID of a studio
- Get a studio title studio.title("[Studio ID]")
- Get a studio description studio.description("[Studio ID]")
- Get if comments are allowed in the studio studio.comments_allowed([Studio ID])
- Get studio create date studio.created([Studio ID])
- Get studio number of followers studio.followers([Studio ID])
- Get studio number of projects studio.projects([Studio ID])
More comming soon!

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.4.5.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

tscratchapiget-0.4.5-py3-none-any.whl (6.1 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