Discuss Scratch

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

How do you set cloud variables in python using websockets?
My code

Last edited by ninjaMAR (March 21, 2021 14:22:01)


ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

bump

Zerofile
Scratcher
100+ posts

How do you set cloud variables in python using websockets?

read the cloudmonitor

thanks for the website ST
LandonHarter
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

Zerofile wrote:

read the cloudmonitor

ninjaMAR wrote:

How do you read the data of cloud variables in python.

LandonHarter
I prefer to be called Landon. Don't use my full username too much.

—————————————————————————————————————————————————————————————————
Male|14 y/o|English, Illageralt, Emerelian|Mineral Fish, Rain World|American|ISTP-A / ISTP-D|Neutral Sociality|#9d0|Chaotic Neutral

“A lack of planning on your part does not constitute an emergency on mine.”



Sheep_maker
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

LandonHarter wrote:

Zerofile wrote:

read the cloudmonitor

ninjaMAR wrote:

How do you read the data of cloud variables in python.
read the cloud monitor in python

- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
SpaceBoy234
Scratcher
78 posts

How do you set cloud variables in python using websockets?

Read https://clouddata.scratch.mit.edu/logs?projectid=12785898&limit=100&offset=0 in python

Last edited by SpaceBoy234 (Sept. 6, 2020 20:57:59)

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

Bump

1a3c5e7g9i
Scratcher
100+ posts

How do you set cloud variables in python using websockets?

# Makes one request for 100 changes in this project's (12785898) cloud data.
import requests, json
cloud_data = requests.get('https://clouddata.scratch.mit.edu/logs?projectid=12785898&limit=100&offset=0')
# Converts to a readily useable format if successful.
if cloud_data.ok:
    cloud_data_json = json.loads(cloud_data.content)
else:
    #Forbidden access?
    print("Error: " + cloud_data.reason)


Wao how is that possible





Uh Squidward? Yes Spongebob? You might want to look at this… HOLY SHRIMP! If we don't act now, well, think about how many clams I'll have to cough up JUST to see an extra portion of nick.com… or worse, to see ALL of it in general! *** Reader! This is not a fictional sketch! It actually is, but that's not the point. Learn more at the link that Spongebob left at the first instance of “this”.
ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

bump

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

bump

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

bump

JackK211424
Scratcher
500+ posts

How do you set cloud variables in python using websockets?

I think they mean actually doing it.

I have heard of this, never tried it though so I don't know if it works.

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

JackK211424 wrote:

I think they mean actually doing it.

I have heard of this, never tried it though so I don't know if it works.
That does not work

JackK211424
Scratcher
500+ posts

How do you set cloud variables in python using websockets?

ninjaMAR wrote:

JackK211424 wrote:

I think they mean actually doing it.

I have heard of this, never tried it though so I don't know if it works.
That does not work
Ok nevermind lol

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

bump

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

ninjaMAR wrote:

bump

9gr
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

ninjaMAR wrote:

ninjaMAR wrote:

bump
Use websockets
I'm not a python guy I'm a JS guy anyway

google it yourself

Last edited by 9gr (Feb. 27, 2021 07:25:24)

ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

9gr wrote:

ninjaMAR wrote:

ninjaMAR wrote:

bump
Use websockets
I'm not a python guy I'm a JS guy anyway

google it yourself
I know

Chiroyce
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

You can setup a Websockets connection to the server with a handshake, but we don't know how and where to include cookies and credentials.







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
ninjaMAR
Scratcher
1000+ posts

How do you set cloud variables in python using websockets?

Chiroyce wrote:

You can setup a Websockets connection to the server with a handshake, but we don't know how and where to include cookies and credentials.
I used you and @pufferfish_test code as an example

Powered by DjangoBB