Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » scratchattach - A Scratch API wrapper (Python)
- yippymishy
-
Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
I'm not on replit but I'll try itThe WS events are working, but is there a way to set cloud variables while the logs are down?have you tried cookie connect? docsThis doesn't work for me ^conn = session.connect_cloud(projectID) conn.set_var("cloud",123)
EDIT: It didn't work
Last edited by yippymishy (Nov. 14, 2023 20:51:55)
- Iapetus13
-
Scratcher
2 posts
scratchattach - A Scratch API wrapper (Python)
Why has no one made something like this with JavaScript?
Last edited by Iapetus13 (Nov. 18, 2023 13:03:07)
- spacedragon913
-
Scratcher
31 posts
scratchattach - A Scratch API wrapper (Python)
Replit doesn't work. It hasn't found the right library to this day.
- god286
-
Scratcher
1000+ posts
scratchattach - A Scratch API wrapper (Python)
Why has no one made something like this with JavaScript?github.com/webdev03/meowclient
- unknownXred
-
Scratcher
60 posts
scratchattach - A Scratch API wrapper (Python)
Dude! This is being used in order to hack a project called Taco Burp to make it unplayable!
- yippymishy
-
Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
Dude! This is being used in order to hack a project called Taco Burp to make it unplayable!That's a known issue with Scratch, not just with ScratchAttach.
also idk if it's actually considered hacking
Last edited by yippymishy (Nov. 20, 2023 17:23:55)
- Sasha--seals
-
Scratcher
31 posts
scratchattach - A Scratch API wrapper (Python)
When I do this:
import scratchattach as scratch
it says “No module named ‘requests’”. I don't know what it means and I did
import os
os.system(“pip install scratchattach”)
Is there something that I am missing?
Thanks
(code is underlined)
os.system(“pip install requests”)
- -ProXeel
-
Scratcher
52 posts
scratchattach - A Scratch API wrapper (Python)
import scratchattach as scratch3
session = scratch3.Session(“session_id”, username=“username”)
conn = session.connect_cloud(“project_id”)
client = scratch3.CloudRequests(conn)
@client.request
def ping():
print(“Ping request received”)
return “pong”
@client.event
def on_ready():
print(“Request handler is running”)
client.run()
it does not work. i think because scratch clouds log are down…

Last edited by -ProXeel (Dec. 3, 2023 10:35:25)
- chloe2ego
-
Scratcher
28 posts
scratchattach - A Scratch API wrapper (Python)

hidewhen green flag clicked
- -ProXeel
-
Scratcher
52 posts
scratchattach - A Scratch API wrapper (Python)
yes ofcit is supposed to work, even tho cloud logs are down.. did you use your credentials and project id?import scratchattach as scratch3
session = scratch3.Session(“session_id”, username=“username”)
conn = session.connect_cloud(“project_id”)
client = scratch3.CloudRequests(conn)
@client.request
def ping():
print(“Ping request received”)
return “pong”
@client.event
def on_ready():
print(“Request handler is running”)
client.run()
it does not work. i think because scratch clouds log are down…
- nexoalex
-
Scratcher
79 posts
scratchattach - A Scratch API wrapper (Python)
what are you guys using to do the commands its soooo time taking to figure out like is it even apt
(im in linux)
(im in linux)
- StarlitSunset
-
Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
what are you guys using to do the commands its soooo time taking to figure out like is it even aptIf you're on linux, it should be easy, as most distros come with Python pre-installed.
(im in linux)
Open up your terminal and type (without the quotes) “pip -m install scratchattach”. This will install Scratchattach into python. Then, you can open up a python IDE (or use a text editor if you prefer), and type some code for scratchattach, and it should work.
- davidtheplatform
-
Scratcher
500+ posts
scratchattach - A Scratch API wrapper (Python)
The command should be:what are you guys using to do the commands its soooo time taking to figure out like is it even aptIf you're on linux, it should be easy, as most distros come with Python pre-installed.
(im in linux)
Open up your terminal and type (without the quotes) “pip -m install scratchattach”. This will install Scratchattach into python. Then, you can open up a python IDE (or use a text editor if you prefer), and type some code for scratchattach, and it should work.
python3 -m pip install scratchattach
sudo apt install python3
- StarlitSunset
-
Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
Hey everyone! Question: Does Scratchattach work in projects that are packaged with turbowarp packager, if I use the “turbowarp cloud requests” thingy or whatever it's called?
- perperperper
-
Scratcher
16 posts
scratchattach - A Scratch API wrapper (Python)
i have Cloud Request sprite 

think [what do i do next :|] for (5) secs
- VIGARPAST_777
-
Scratcher
75 posts
scratchattach - A Scratch API wrapper (Python)
Hi,
The comman “import” in my command prompt doesn't work, I use windows 11. Anybody know how to install the library without the command prompt?
The comman “import” in my command prompt doesn't work, I use windows 11. Anybody know how to install the library without the command prompt?
- yippymishy
-
Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
Is there some way to set variables while cloud variables are having issues? conn.set_var() doesn't work.
- -ProXeel
-
Scratcher
52 posts
scratchattach - A Scratch API wrapper (Python)
conn = session.connect_cloud(“887097732”)
ok but “conn = session.connect_cloud(”887097732“)” doesn't work…try using client.run(data_from_websocket=True) in the endyes ofcit is supposed to work, even tho cloud logs are down.. did you use your credentials and project id?import scratchattach as scratch3
session = scratch3.Session(“session_id”, username=“username”)
conn = session.connect_cloud(“project_id”)
client = scratch3.CloudRequests(conn)
@client.request
def ping():
print(“Ping request received”)
return “pong”
@client.event
def on_ready():
print(“Request handler is running”)
client.run()
it does not work. i think because scratch clouds log are down…
- ScratchTheCoder12345
-
Scratcher
500+ posts
scratchattach - A Scratch API wrapper (Python)
i have Cloud Request spriteLearn the whole Python coding language, come back when you are done.think [what do i do next :|] for (5) secs
- ShadowMilo
-
Scratcher
13 posts
scratchattach - A Scratch API wrapper (Python)
bruh my windows 11 doesn't think pip exists and i can't install scratchattachHi,bro, the command is “pip install -U scratchattach” not “import scratchattach as scratch3”
The comman “import” in my command prompt doesn't work, I use windows 11. Anybody know how to install the library without the command prompt?
when green flag clicked
say [why microsoft] for (infinity) secs