Skip to content

Cloud API

Ankit_Anmol edited this page Dec 14, 2021 · 25 revisions

PAGE WIP

Cloud:

You can request Cloud data from Scratch API only.

Scratch:

from ScraGet import ScraGet #import the package 
data = ScraGet.get_cloud_data() #create a class
data.updateScratch("431041540",limit="10",offset="0") #update data
print(data.cloud_data) #print required info

*Data:

data.cloud_data #yes. That's it. 

ScratchDB:

ScratchDB doesn't support/return Cloud data.

Cloud scanner:

Data:

Cloud.change_log #list of all changes

#all the below is related to the 1st item of change_log
Cloud.recent #1st item of the change
Cloud.user #person who changed the cloud most recently
Cloud.type #the action of cloud change (set,delete, etc...)
Cloud.var #variable name
Cloud.value #the cloud value
Cloud.time #time when the change happened

Cloud.thread #given when NewThread = True. This contains the thread object
Cloud.stop #this is used to check whether the scanner is running or stopped

Clone this wiki locally