Discuss Scratch

yippymishy
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

EngineerRunner wrote:

yippymishy wrote:

The WS events are working, but is there a way to set cloud variables while the logs are down?
conn = session.connect_cloud(projectID)
conn.set_var("cloud",123)
This doesn't work for me ^
have you tried cookie connect? docs

I'm not on replit but I'll try it

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)

Iapetus13 wrote:

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)

unknownXred wrote:

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)

infintyrussia_test wrote:

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)

DebugDungeon wrote:

-ProXeel wrote:

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…
it is supposed to work, even tho cloud logs are down.. did you use your credentials and project id?
yes ofc
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)
StarlitSunset
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

nexoalex wrote:

what are you guys using to do the commands its soooo time taking to figure out like is it even apt
(im in linux)
If you're on linux, it should be easy, as most distros come with Python pre-installed.

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)

StarlitSunset wrote:

nexoalex wrote:

what are you guys using to do the commands its soooo time taking to figure out like is it even apt
(im in linux)
If you're on linux, it should be easy, as most distros come with Python pre-installed.

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.
The command should be:
python3 -m pip install scratchattach
To install python if you don't already have it:
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?
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”)

DebugDungeon wrote:

-ProXeel wrote:

DebugDungeon wrote:

-ProXeel wrote:

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…
it is supposed to work, even tho cloud logs are down.. did you use your credentials and project id?
yes ofc
try using client.run(data_from_websocket=True) in the end
ok but “conn = session.connect_cloud(”887097732“)” doesn't work…
ScratchTheCoder12345
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

perperperper wrote:

i have Cloud Request sprite
think [what do i do next :|] for (5) secs
Learn the whole Python coding language, come back when you are done.
ShadowMilo
Scratcher
13 posts

scratchattach - A Scratch API wrapper (Python)

DebugDungeon wrote:

VIGARPAST_777 wrote:

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?
bro, the command is “pip install -U scratchattach” not “import scratchattach as scratch3”
bruh my windows 11 doesn't think pip exists and i can't install scratchattach
when green flag clicked
say [why microsoft] for (infinity) secs

Powered by DjangoBB