Skip to main content

A package that makes interacting with Scratch API easier

Project description

ScraGet

forthebadge made-with-python
Downloads PyPI Latest Release PyPI pyversions

ScraGet - A Scratch API package for Python
This is a package that makes it easy to get data form:

  1. Scratch -- Made by Scratch developers
  2. ScratchDB -- Made by @DatOneLefty


Code at: https://github.com/Quantum-Codes/ScraGet
Pypi: https://pypi.python.org/pypi/ScraGet/

This package is used without any passwords!
You don't need to Memorize any links!

Bonus features:

  1. Cloud encoding/decoding with pre-made scratch script too!
  2. Cloud variable change event!

To install:

pip install ScraGet

Docs: https://github.com/Quantum-Codes/ScraGet/wiki

Some example usages given in the docs!

Basic usage:

Get user ID from scratch

from ScraGet import ScraGet #import package
user = ScraGet.get_user() #create object
user.updateScratch("griffpatch") #update data
print(user.id) #print required info

Get user ID from scratchDB

from ScraGet import ScraGet #import package
user = ScraGet.get_user() #create object
user.updateScratchDB("griffpatch") #update data
print(user.id) #print required info

Advanced

Scan cloud for any changes

from ScraGet import ScraGet

Cloud = ScraGet.cloud()
@Cloud.scan(ID="612229554",delay=1,NewThread=False) #params explained in wiki
def hello(change): #change parameter is automatically passed.
  print(change.var)
  Cloud.stop = True #this stops the scanning. Don't put if u want to keep scanning

Useful links

Code not working as intended or have any questions? Ask here!
Any problems with the package or want to suggest a feature? Make an issue!

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

ScraGet-0.2.4.tar.gz (10.1 kB view hashes)

Uploaded Source

Built Distribution

ScraGet-0.2.4-py3-none-any.whl (13.0 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