Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » scratchattach - A Scratch API wrapper (Python)
- boomerangBS
- Scratcher
10 posts
scratchattach - A Scratch API wrapper (Python)
How do I keep the program running permanently ?
- rgantzos
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
This is SOOO helpful!! I've made multiple projects with it, and I love that it lets you sign in using a session ID.
i'm rgantzos
- -FreeEngines-
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
that is to vague. WHAT numbers is it giving you with WHAT code?well i downloaded python, brand new, and ran all the scripts shown on GitHub. All it gives me is some numbers, and it won't let me run any other commandit can. but what you are saying is to vague, what are you triyng and what exactly is not working? i still cannot download it. can it even be downloaded on macos? (m1 chip os12.4)
- lalusangani
- Scratcher
21 posts
scratchattach - A Scratch API wrapper (Python)
I don't get it how do you do it?
- -FreeEngines-
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
What are you trying to do, and what are you doing? what is your code I don't get it how do you do it?
- FirstKrunkMan
- Scratcher
5 posts
scratchattach - A Scratch API wrapper (Python)
Hello, you can also use library ‘`scratchclient`’. Those functions are from there!
say [Hello!] for (2) secsI'm FirstKrunkMan. I started coding at 2017, but now I like doing it very much!
I'm currently learning C++ & Java, but I make projects on Scratch too.
Bye, have a good day!
___________________________________________________
If you are bored, then play this game!
___________________________________________________
This is a signature. You can change
it on the discussion home. Click
this link and
scroll down. Click 'Change signature'.
- TimMcCool
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
Can you give me your code? Then I can probably help youit doesn't works writ the str(scratch3.User) i get only a number and whit scratch.User.username on syntax errorDoes anyone know how to change scratch3.User objects into real usernames.orstr(scratch3.User)will return the username of the user.scratch.User.username
Last edited by TimMcCool (May 25, 2022 20:34:06)
Developer of scratchattach, the most popular Python Scratch API wrapper
- INDIOUS111
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
What if I want to make a scratchattch project but I dont have Python?
- -FreeEngines-
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
quote=INDIOUS111]What if I want to make a scratchattch project but I dont have Python?
use any other package from any other language?
use any other package from any other language?
- altrip
- Scratcher
8 posts
scratchattach - A Scratch API wrapper (Python)
Its not working for me
I put
import os
os.system(“pip install scratchattach”)
it says
'pip' is not recognized as an internal or external command,
operable program or batch file.
1
I put
import os
os.system(“pip install scratchattach”)
it says
'pip' is not recognized as an internal or external command,
operable program or batch file.
1
- il_GG
- Scratcher
31 posts
scratchattach - A Scratch API wrapper (Python)
Copy the pip install scratchattach into the terminal (open whit ctrl+alt+t) and press enter. maybe you must allso write the password when the computer ask you i don't know how to use “pip install” can anyone help me
Last edited by il_GG (May 26, 2022 09:31:37)
- il_GG
- Scratcher
31 posts
scratchattach - A Scratch API wrapper (Python)
Copy the pip install scratchattach into the terminal (open whit ctrl+alt+t) and press enter. maybe you must allso write the password when the computer ask you Its not working for me
I put
import os
os.system(“pip install scratchattach”)
it says
'pip' is not recognized as an internal or external command,
operable program or batch file.
1
- MarioBrosU22
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
Why did you say that twiceCopy the pip install scratchattach into the terminal (open whit ctrl+alt+t) and press enter. maybe you must allso write the password when the computer ask you Its not working for me
I put
import os
os.system(“pip install scratchattach”)
it says
'pip' is not recognized as an internal or external command,
operable program or batch file.
1
Hi its me
- il_GG
- Scratcher
31 posts
scratchattach - A Scratch API wrapper (Python)
I said it twice because there were two question and i want that both scrachers get a new that i have answered.
Last edited by il_GG (May 26, 2022 09:58:04)
- il_GG
- Scratcher
31 posts
scratchattach - A Scratch API wrapper (Python)
Can you give me your code? Then I can probably help youit doesn't works writ the str(scratch3.User) i get only a number and whit scratch.User.username on syntax errorDoes anyone know how to change scratch3.User objects into real usernames.orstr(scratch3.User)will return the username of the user.scratch.User.username
Mein code ist
Follower = str(0x7f805f3a6ac0)
print(Follower)
Und als output bacam ich diese zahl 140189330205376
Das war der einzige befehl bei dem keine fehlermeldung kam.
ich hab versucht sie zu decodieren
Encoding.decode(Follower)
aber das ergab nur diese sinnlose buchstaben “5Nonenew”
- I-Animations-I
- Scratcher
30 posts
scratchattach - A Scratch API wrapper (Python)
first go here and install python, then learn python (Get a good book, or find a helpfull tutorial online). then wait untill you think you got the hang of it, and learn scratchattachwhen green flag clicked
ask [Someone can explain to me how to use python?] and wait
if <(answer) = [YES]> then
say [Thanks]
end
Thanks
- VIGARPAST_777
- Scratcher
55 posts
scratchattach - A Scratch API wrapper (Python)
when green flag clicked
ask [CAN YOU MADE A PYTHON TUTORIAL???] and wait
stop [BY]
Bye
- il_GG
- Scratcher
31 posts
scratchattach - A Scratch API wrapper (Python)
Does anyone know what to do when the request is unknow.
this is my python script
client = scratch3.CloudRequests(conn, ignore_exceptions=True)
@client.request
def user(argument1):
print(f“Data requested for decode of {argument1}”)
return_data =
User = str(argument1)
print(User)
return_data.append(User)
return return_data
and this the scrach script
and this the error output in scrach
Error: Unknown request
and this the error in python
Warning: Client received an unknown request called ‘user’
this is my python script
client = scratch3.CloudRequests(conn, ignore_exceptions=True)
@client.request
def user(argument1):
print(f“Data requested for decode of {argument1}”)
return_data =
User = str(argument1)
print(User)
return_data.append(User)
return return_data
and this the scrach script
"Send Request | request name:"(user)"argument1:" (Return user)"and wait"
and this the error output in scrach
Error: Unknown request
and this the error in python
Warning: Client received an unknown request called ‘user’
Last edited by il_GG (May 26, 2022 11:59:29)
- -FreeEngines-
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
Can you give me your code? Then I can probably help youit doesn't works writ the str(scratch3.User) i get only a number and whit scratch.User.username on syntax errorDoes anyone know how to change scratch3.User objects into real usernames.orstr(scratch3.User)will return the username of the user.scratch.User.username
Mein code ist
Follower = str(0x7f805f3a6ac0)
print(Follower)
Und als output bacam ich diese zahl 140189330205376
Das war der einzige befehl bei dem keine fehlermeldung kam.
ich hab versucht sie zu decodieren
Encoding.decode(Follower)
aber das ergab nur diese sinnlose buchstaben “5Nonenew”
ein bischen hilfe bei sowas.Can you give me your code? Then I can probably help youit doesn't works writ the str(scratch3.User) i get only a number and whit scratch.User.username on syntax errorDoes anyone know how to change scratch3.User objects into real usernames.orstr(scratch3.User)will return the username of the user.scratch.User.username
Mein code ist
Follower = str(0x7f805f3a6ac0)
print(Follower)
Und als output bacam ich diese zahl 140189330205376
Das war der einzige befehl bei dem keine fehlermeldung kam.
ich hab versucht sie zu decodieren
Encoding.decode(Follower)
aber das ergab nur diese sinnlose buchstaben “5Nonenew”
erstens niemals variablen großbuchstaben als anfang geben.
Encoding.decode(Follower) ist ziemlich sinnlos, da du die ausgabe von .decode immernoch in einer variable abspeichern muss.
Und du wendest grade die methode str() auf einen raw byte an, also machst du aus einem raw byte eine zahl, und dieser raw byte entspricht halt der zahl die du da printest. Du solltset dich erstmal mit den grundprinzipien von python auseinander setzen, bevor du mit so einem package arbeitest xD