Discuss Scratch

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)

NL3_Animations wrote:

-FreeEngines- wrote:

NL3_Animations wrote:

i still cannot download it. can it even be downloaded on macos? (m1 chip os12.4)
it can. but what you are saying is to vague, what are you triyng and what exactly is not working?
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 command
that is to vague. WHAT numbers is it giving you with WHAT code?
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)

lalusangani wrote:

I don't get it how do you do it?
What are you trying to do, and what are you doing? what is your code
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) secs
I'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)

il_GG wrote:

TimMcCool wrote:

il_GG wrote:

Does anyone know how to change scratch3.User objects into real usernames.

str(scratch3.User)
or
scratch.User.username
will return the username of the user.
it doesn't works writ the str(scratch3.User) i get only a number and whit scratch.User.username on syntax error
Can you give me your code? Then I can probably help you

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?

My Logo Is Below!!!







ScratchTheCoder12345
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

You can't.

Hello, I'm Brandon a Python developer who loves math and coding.
he/him
Feel free to message me with any questions
-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?
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
il_GG
Scratcher
31 posts

scratchattach - A Scratch API wrapper (Python)

bestbrainmason wrote:

i don't know how to use “pip install” can anyone help me
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

Last edited by il_GG (May 26, 2022 09:31:37)

il_GG
Scratcher
31 posts

scratchattach - A Scratch API wrapper (Python)

altrip wrote:

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
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
MarioBrosU22
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

il_GG wrote:

altrip wrote:

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
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
Why did you say that twice

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)

TimMcCool wrote:

il_GG wrote:

TimMcCool wrote:

il_GG wrote:

Does anyone know how to change scratch3.User objects into real usernames.

str(scratch3.User)
or
scratch.User.username
will return the username of the user.
it doesn't works writ the str(scratch3.User) i get only a number and whit scratch.User.username on syntax error
Can you give me your code? Then I can probably help you

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)

ScratchcatandGobo wrote:

I-Animations-I wrote:

when green flag clicked
ask [Someone can explain to me how to use python?] and wait
if <(answer) = [YES]> then
say [Thanks]
end
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 scratchattach

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

"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)

il_GG wrote:

TimMcCool wrote:

il_GG wrote:

TimMcCool wrote:

il_GG wrote:

Does anyone know how to change scratch3.User objects into real usernames.

str(scratch3.User)
or
scratch.User.username
will return the username of the user.
it doesn't works writ the str(scratch3.User) i get only a number and whit scratch.User.username on syntax error
Can you give me your code? Then I can probably help you

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”

il_GG wrote:

TimMcCool wrote:

il_GG wrote:

TimMcCool wrote:

il_GG wrote:

Does anyone know how to change scratch3.User objects into real usernames.

str(scratch3.User)
or
scratch.User.username
will return the username of the user.
it doesn't works writ the str(scratch3.User) i get only a number and whit scratch.User.username on syntax error
Can you give me your code? Then I can probably help you

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.
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

Powered by DjangoBB