Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » scratchattach - A Scratch API wrapper (Python)
- youhan_school
- Scratcher
41 posts
scratchattach - A Scratch API wrapper (Python)
See the ref documentThx but how do you get it in Python? I mean I don't get it I only know how to code in Pythonsorry answering late, idk if this got answered aready.Why doesn't anyone answer? How do you even get your session ID?
when making an post request to https://scratch.mit.edu/login with {username, password} in the request body, the response the server returns contains the session id in the cookie at
caseless.dict // this returns the cookie header which you then have to extract the value from
Main profile: https://scratch.mit.edu/users/youhan_school/
主要页面:https://scratch.mit.edu/users/youhan_school/
Profile utama: https://scratch.mit.edu/users/youhan_school/
- youhan_school
- Scratcher
41 posts
scratchattach - A Scratch API wrapper (Python)
BIG BALLSq=the+rock+meme&rlz=1CAJEUV_enJP953JP954&tbm=isch&source=iu&ictx=1&vet=1&fir=OfIBuxnhNacVDM%252Ctxs0uofZK90upM%252C_%253BfBwBTifDu1HgwM%252CkMvf-WHXY5VMcM%252C_%253BO_yAyDYmUoremM%252CN7l9nFXC0YDPZM%252C_%253BnSHfwRtUGLVAAM%252Cpo_WHJ9n5uYIEM%252C_%253BLsaLeadPUEFTsM%252CX5V0t_lJANnTsM%252C_%253B9H3RZXajaZA7KM%252CcpWJKMxpm96tCM%252C_%253BDVOhMQ61Q_vgLM%252CLyKzML62Kv8JWM%252C_%253BVf-vlx6EGL_9UM%252C8-XdB2BJeHM32M%252C_%253BORkpDXiHbWIE8M%252CpDX0kvthRoHsRM%252C_%253BrOOhgIVE3AdVIM%252CaHsmegIwReEI0M%252C_%253B3sTCwMAyNpTroM%252CXar38-da_iqyKM%252C_%253BPNpS8BADvHjDUM%252CSqmMC2Q4RpTlDM%252C_%253Bs_akJg3txZHerM%252Cpq9JZXebrkI3EM%252C_%253B2ePRFMPbX3CVXM%252CvbomvYsks-SixM%252C_%253B0kZXapEqKsU_wM%252CXUuyQSsKtG1xbM%252C_%253ByyGyN8yjjec5UM%252C03-J0CfuEHRsNM%252C_&usg=AI4_-kSCSmcWbuExb1nNkE49Pa9v4KOL1g&sa=X&ved=2ahUKEwjbh9_bjfr3AhVrxIsBHUuOAVEQ9QF6BAgVEAE&safe=active&ssui=on#imgrc=LsaLeadPUEFTsM&imgdii=pu7_yas33twtzM
Do not spam please.
Main profile: https://scratch.mit.edu/users/youhan_school/
主要页面:https://scratch.mit.edu/users/youhan_school/
Profile utama: https://scratch.mit.edu/users/youhan_school/
- INDIOUS111
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
(#395)People are still alive on Scratch? It is so late where I am
I seee
- NL3_Animations
- Scratcher
21 posts
scratchattach - A Scratch API wrapper (Python)
i still cannot download it. can it even be downloaded on macos? (m1 chip os12.4)
g, No Flash version detectedgggg]g
- -FreeEngines-
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
*Didnt see that question to my post.See the ref documentThx but how do you get it in Python? I mean I don't get it I only know how to code in Pythonsorry answering late, idk if this got answered aready.Why doesn't anyone answer? How do you even get your session ID?
when making an post request to https://scratch.mit.edu/login with {username, password} in the request body, the response the server returns contains the session id in the cookie at
caseless.dict // this returns the cookie header which you then have to extract the value from
that is just an explanation of how to do it, if you can't do anything with that, you should try around a bit with the requests module on pip
- -FreeEngines-
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
it 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)
- NL3_Animations
- Scratcher
21 posts
scratchattach - A Scratch API wrapper (Python)
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)
g, No Flash version detectedgggg]g
- TimMcCool
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
New features in v0.5.0:
- Studios were added to scratchattach: https://github.com/TimMcCool/scratchattach#studios–scratch3studio
- The 3000 character limit for the cloud requests return data was lifted.
- The user.studio_count() and user.studio_following_count() functions were added.
Coming soon:
- Cloud requests for TurboWarp
- Studios were added to scratchattach: https://github.com/TimMcCool/scratchattach#studios–scratch3studio
- The 3000 character limit for the cloud requests return data was lifted.
- The user.studio_count() and user.studio_following_count() functions were added.
Coming soon:
- Cloud requests for TurboWarp
Last edited by TimMcCool (May 25, 2022 14:05:01)
Developer of scratchattach, the most popular Python Scratch API wrapper
- I-Animations-I
- Scratcher
30 posts
scratchattach - A Scratch API wrapper (Python)
New features in v0.5.0:
- Studios were added to scratchattach: https://github.com/TimMcCool/scratchattach#studios–scratch3studio
- The 3000 character limit for the cloud requests return data was lifted.
- The user.studio_count() and user.studio_following_count() functions were added.
Coming soon:
- Cloud requests for TurboWarp
Hi TimMcCool, I need help, I don't understand how to program with Python and scratchattach
- INDIOUS111
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
New features in v0.5.0:
- Studios were added to scratchattach: https://github.com/TimMcCool/scratchattach#studios–scratch3studio
- The 3000 character limit for the cloud requests return data was lifted.
- The user.studio_count() and user.studio_following_count() functions were added.
Coming soon:
- Cloud requests for TurboWarp
Cool! This is getting big!
- I-Animations-I
- Scratcher
30 posts
scratchattach - A Scratch API wrapper (Python)
when green flag clicked
ask [Someone can help me to understand Python?] and wait
if <(answer) = [Yes]> then
say [Thanks]
end
Last edited by I-Animations-I (May 25, 2022 15:38:27)
- il_GG
- Scratcher
31 posts
scratchattach - A Scratch API wrapper (Python)
it 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
- I-Animations-I
- Scratcher
30 posts
scratchattach - A Scratch API wrapper (Python)
when green flag clicked
ask [Someone can explain to me how to use python?] and wait
if <(answer) = [YES]> then
say [Thanks]
end
- I-Animations-I
- Scratcher
30 posts
scratchattach - A Scratch API wrapper (Python)
Hi
Last edited by I-Animations-I (May 25, 2022 15:42:00)
- bestbrainmason
- Scratcher
8 posts
scratchattach - A Scratch API wrapper (Python)
i don't know how to use “pip install” can anyone help me
- ScratchcatandGobo
- Scratcher
1000+ posts
scratchattach - A Scratch API wrapper (Python)
So first you need to install python from i don't know how to use “pip install” can anyone help mehere then go to cmd, and type “Pip install” and hit enter
Check out Leo's adventure
I felt like I wanted to develop games on here, so I won't leave! (for now)
(last edited 2/8/24)
- ScratchcatandGobo
- Scratcher
1000+ 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
Check out Leo's adventure
I felt like I wanted to develop games on here, so I won't leave! (for now)
(last edited 2/8/24)