Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » scratchattach - A Scratch API wrapper (Python)
- TheMobileGames
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
No, you can change the variables of any project as long as you aren’t banned from the Scratch API and have the Scratcher rank of course. It’s actually very very helpful to me whenever I need to change some variables on my project with an alt account instead. Don't you need to own the project to change them?
—————————— —————————— —————————— —————————— ——————————
A way to make any game easily mobile (no remixing needed): https://scratch.mit.edu/discuss/topic/733837
My mobile engine (use to add buttons/controls to a game): https://scratch.mit.edu/projects/778848092/
—————————— —————————— —————————— —————————— ——————————
- Eason_9
- Scratcher
1000+ posts
scratchattach - A Scratch API wrapper (Python)
(#2282)bump for my post(#2281)I tried, but it said that requirements are already satisfied and refused to download
So you must have downloaded the file onto your pc when you ran the command in the cmd. To use scratchattach in vs code download scratchattach using the terminal in vs code.
*This is my signature, more info on it here! Scroll down by highlighting anywhere and press shift and the down arrow key.
Get your images up to the forums with my shop: Imagif Hosters (for free!)
If you have some time to spare, perhaps go read my Scratch Wiki essays!
And since I'm here I should probably advertise my projects but I can't find a good project I made.
11 (almost 12) - He/Him
If you have some time to spare, perhaps go read my Scratch Wiki essays!
And since I'm here I should probably advertise my projects but I can't find a good project I made.
11 (almost 12) - He/Him
- AKLCool
- Scratcher
28 posts
scratchattach - A Scratch API wrapper (Python)
Hello! Im using scratchattach on my macbook, and installed it via homebrew. I have this code: import importlib
import scratchattach
importlib.reload(scratchattach)
import scratchattach as scratch3
session = scratch3.login(“AKLCool”, “REDACTED”)
conn = session.connect_cloud(project_id=“797826863”)
conn.set_var(“pencolour”, “0”)
but, when i run it, i get this:
REDACTED@192-168-1-21 ~ % /usr/local/bin/python3 /Users/REDACTED/scratchattach.py
Traceback (most recent call last):
File “/Users/REDACTED/scratchattach.py”, line 2, in <module>
import scratchattach
File “/Users/lREDACTED/scratchattach.py”, line 4, in <module>
importlib.reload(scratchattach)
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py”, line 131, in reload
_bootstrap._exec(spec, module)
File “/Users/REDACTED/scratchattach.py”, line 8, in <module>
session = scratch3.login(“AKLCool”, “REDACTED”)
^^^^^^^^^^^^^^
AttributeError: module ‘scratchattach’ has no attribute ‘login’
im running this code on vs code, and i dont know how to fix it! please help me
import scratchattach
importlib.reload(scratchattach)
import scratchattach as scratch3
session = scratch3.login(“AKLCool”, “REDACTED”)
conn = session.connect_cloud(project_id=“797826863”)
conn.set_var(“pencolour”, “0”)
but, when i run it, i get this:
REDACTED@192-168-1-21 ~ % /usr/local/bin/python3 /Users/REDACTED/scratchattach.py
Traceback (most recent call last):
File “/Users/REDACTED/scratchattach.py”, line 2, in <module>
import scratchattach
File “/Users/lREDACTED/scratchattach.py”, line 4, in <module>
importlib.reload(scratchattach)
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py”, line 131, in reload
_bootstrap._exec(spec, module)
File “/Users/REDACTED/scratchattach.py”, line 8, in <module>
session = scratch3.login(“AKLCool”, “REDACTED”)
^^^^^^^^^^^^^^
AttributeError: module ‘scratchattach’ has no attribute ‘login’
im running this code on vs code, and i dont know how to fix it! please help me
.
✨AKLCool✨
✅ Qualifications ✅
- Over 300 projects
Been on scratch for over a year
Has projects with more than 100 views!
✨Important things ✨
F4F: ❌
Help with scripts?: ✅ (comment on my profile and i'll try my best)
Things I Make
Games, animations, and tests!
when green flag clicked
if (You need help or want a project reviewed) then
say [Contact me on my profile!] for (2) seconds
- Eason_9
- Scratcher
1000+ posts
scratchattach - A Scratch API wrapper (Python)
(#2282)bump for my post(#2281)I tried, but it said that requirements are already satisfied and refused to download
So you must have downloaded the file onto your pc when you ran the command in the cmd. To use scratchattach in vs code download scratchattach using the terminal in vs code.
*This is my signature, more info on it here! Scroll down by highlighting anywhere and press shift and the down arrow key.
Get your images up to the forums with my shop: Imagif Hosters (for free!)
If you have some time to spare, perhaps go read my Scratch Wiki essays!
And since I'm here I should probably advertise my projects but I can't find a good project I made.
11 (almost 12) - He/Him
If you have some time to spare, perhaps go read my Scratch Wiki essays!
And since I'm here I should probably advertise my projects but I can't find a good project I made.
11 (almost 12) - He/Him
- EpicCoderGamer1000
- Scratcher
74 posts
scratchattach - A Scratch API wrapper (Python)
Why are you bumping your posts? Is there a problem or something?(#2282)bump for my post(#2281)I tried, but it said that requirements are already satisfied and refused to download
So you must have downloaded the file onto your pc when you ran the command in the cmd. To use scratchattach in vs code download scratchattach using the terminal in vs code.
epic coder gamer 1000
- EpicCoderGamer1000
- Scratcher
74 posts
scratchattach - A Scratch API wrapper (Python)
import importlib
import scratchattach
importlib.reload(scratchattach)
import scratchattach as scratch3
session = scratch3.login(“AKLCool”, “REDACTED”)
conn = session.connect_cloud(project_id=“797826863”)
conn.set_var(“pencolour”, “0”)
with my knowledge this is what the code should look like
import importlib
import scratchattach as scratch3
importlib.reload(scratchattach)
session = scratch3.login(“AKLCool”, “REDACTED”)
conn = session.connect_cloud(“797826863”)
conn.set_var(“pencolour”, “0”)
epic coder gamer 1000
- AKLCool
- Scratcher
28 posts
scratchattach - A Scratch API wrapper (Python)
TypeError: Session.connect_cloud() takes 1 positional argument but 2 were given
why? and how to fix
why? and how to fix
.
✨AKLCool✨
✅ Qualifications ✅
- Over 300 projects
Been on scratch for over a year
Has projects with more than 100 views!
✨Important things ✨
F4F: ❌
Help with scripts?: ✅ (comment on my profile and i'll try my best)
Things I Make
Games, animations, and tests!
when green flag clicked
if (You need help or want a project reviewed) then
say [Contact me on my profile!] for (2) seconds
- EpicCoderGamer1000
- Scratcher
74 posts
scratchattach - A Scratch API wrapper (Python)
idk why that happened. Maybe try removing “importlib” code if possible TypeError: Session.connect_cloud() takes 1 positional argument but 2 were given
why? and how to fix
epic coder gamer 1000
- AKLCool
- Scratcher
28 posts
scratchattach - A Scratch API wrapper (Python)
is there a way to check if the login failed?
.
✨AKLCool✨
✅ Qualifications ✅
- Over 300 projects
Been on scratch for over a year
Has projects with more than 100 views!
✨Important things ✨
F4F: ❌
Help with scripts?: ✅ (comment on my profile and i'll try my best)
Things I Make
Games, animations, and tests!
when green flag clicked
if (You need help or want a project reviewed) then
say [Contact me on my profile!] for (2) seconds
- EpicCoderGamer1000
- Scratcher
74 posts
scratchattach - A Scratch API wrapper (Python)
It would say login failed
epic coder gamer 1000
- mas6y6
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
Can you please how the code? TypeError: Session.connect_cloud() takes 1 positional argument but 2 were given
Hi i am mas6y6 i am the maker and owner for Scratch Cloud
Its a Scratch in Scratch Project
======
The Cloud Web has been discontinued
- TimMcCool
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
Hello! Im using scratchattach on my macbook, and installed it via homebrew. I have this code: import importlib
import scratchattach
importlib.reload(scratchattach)
import scratchattach as scratch3
session = scratch3.login(“AKLCool”, “REDACTED”)
conn = session.connect_cloud(project_id=“797826863”)
conn.set_var(“pencolour”, “0”)
but, when i run it, i get this:
REDACTED@192-168-1-21 ~ % /usr/local/bin/python3 /Users/REDACTED/scratchattach.py
Traceback (most recent call last):
File “/Users/REDACTED/scratchattach.py”, line 2, in <module>
import scratchattach
File “/Users/lREDACTED/scratchattach.py”, line 4, in <module>
importlib.reload(scratchattach)
File “/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/__init__.py”, line 131, in reload
_bootstrap._exec(spec, module)
File “/Users/REDACTED/scratchattach.py”, line 8, in <module>
session = scratch3.login(“AKLCool”, “REDACTED”)
^^^^^^^^^^^^^^
AttributeError: module ‘scratchattach’ has no attribute ‘login’
im running this code on vs code, and i dont know how to fix it! please help me
Try updating scrtchattach to the most recent version. If this doesn't fix it, try logging in with your session id: https://github.com/TimMcCool/scratchattach/wiki#logging-in
Last edited by TimMcCool (Feb. 10, 2024 16:02:24)
Developer of scratchattach, the most popular Python Scratch API wrapper
- TimMcCool
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
It'll soon be possible to use scratchattach to create a websocket server that works as a cloud host for TurboWarp's cloud variables (https://docs.turbowarp.org/url-parameters#cloud_host) and allows some customisation
Developer of scratchattach, the most popular Python Scratch API wrapper
- arseyar
- Scratcher
100+ posts
scratchattach - A Scratch API wrapper (Python)
Hi, TimMcCool.
I tried to use the
What do I need to do?
I tried to use the
Send Request | Request Name [ping] and waitBut Python Code doesn't responding.
What do I need to do?
- Lurdumoloch
- Scratcher
3 posts
scratchattach - A Scratch API wrapper (Python)
How can you run the python code 24/7 for free?
- errplane
- Scratcher
57 posts
scratchattach - A Scratch API wrapper (Python)
How can you run the python code 24/7 for free?
self-hosting, you still have to pay the electricity bill, but that's probably fine.
Last edited by errplane (Feb. 21, 2024 18:30:04)
- AwesomeApaar
- Scratcher
7 posts
scratchattach - A Scratch API wrapper (Python)
how do you use the api for hacking
- AwesomeApaar
- Scratcher
7 posts
scratchattach - A Scratch API wrapper (Python)
i dont know how to put cri[ts in the api, can someone pls tell me
- Eason_9
- Scratcher
1000+ posts
scratchattach - A Scratch API wrapper (Python)
(#2282)bump for my post(#2281)I tried, but it said that requirements are already satisfied and refused to download
So you must have downloaded the file onto your pc when you ran the command in the cmd. To use scratchattach in vs code download scratchattach using the terminal in vs code.
*This is my signature, more info on it here! Scroll down by highlighting anywhere and press shift and the down arrow key.
Get your images up to the forums with my shop: Imagif Hosters (for free!)
If you have some time to spare, perhaps go read my Scratch Wiki essays!
And since I'm here I should probably advertise my projects but I can't find a good project I made.
11 (almost 12) - He/Him
If you have some time to spare, perhaps go read my Scratch Wiki essays!
And since I'm here I should probably advertise my projects but I can't find a good project I made.
11 (almost 12) - He/Him
- ajskateboarder
- Scratcher
1000+ posts
scratchattach - A Scratch API wrapper (Python)
By changing variables on a different project - and it's not really a hack. Check out how do you use the api for hackingthe scratchattach wiki to learn how to use scratchattach, and of course, make sure you know Python well