Discuss Scratch

fire6434
Scratcher
3 posts

Python to Scratch

I’ve been trying to use python for a game, and I figured out a way to connect to the cloud variables. However, whenever I try to do it, it says “ failed CONNECT via proxy status: 403”. Does anyone know how I can fix this?
Uzebekistan
Scratcher
11 posts

Python to Scratch

No, we don't.
makinggamesbad
Scratcher
100+ posts

Python to Scratch

if you're using scratchattach there's a forum topic for it, you should ask there
https://scratch.mit.edu/discuss/topic/603418/
yadayadayadagoodbye
Scratcher
1000+ posts

Python to Scratch

makinggamesbad wrote:

if you're using scratchattach there's a forum topic for it, you should ask there
https://scratch.mit.edu/discuss/topic/603418/
I believe OP isn't using scratch attach, but just straight up trying to use the API

as to OP, you could use the API, but it'd be way harder (to note, you have to give scratch a valid security cookie or account to connect to cloud variables, and then there's a lot more things as well that has to be handled), instead, just use scratchattach as linked by makinggamesbad, its a python library which is made exactly for this purpose and functions quite well.
makinggamesbad
Scratcher
100+ posts

Python to Scratch

yadayadayadagoodbye wrote:

(to note, you have to give scratch a valid security cookie or account to connect to cloud variables, and then there's a lot more things as well that has to be handled)
if op forgot that, it probably explains the 403 (forbidden)
fire6434
Scratcher
3 posts

Python to Scratch

I tried scratchattach but it said ConnectionError and I didn’t know how to fix it so I’m using a module called scratch cloud client.

Powered by DjangoBB