Discuss Scratch

-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

KROKOBIL wrote:

applejuiceproduc wrote:

KROKOBIL wrote:

MyScratchedAccount wrote:

Urgent post!:
Hopefully people can't use it to hack any cloud project because it said on any project. So I may not use it because of a chance of hacking
You can only hack projects / users / cloud variables if you know the password/session id of that user. But if so, it's not scratchattach's fault.
No you don’t, anybody can modify any cloud variable
WHAT?!?!?!? It is really possible! But why hasn't Scratch fixed this big security bug yet?
how would they fix that in the first place? there is just no way of allowing someone to not modify cloud variables externally (you could, of course emulate all code containing cloud stuff serverside, but that would be quite ressource intensive and probaply wouldnt make much sense)
silvxrcat
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

meatloaf28 wrote:

Is this also available for iPad iOS?
…no? it's python


hi im silver

























i eat orphan babies
silvxrcat
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

-FreeEngines- wrote:

KROKOBIL wrote:

applejuiceproduc wrote:

KROKOBIL wrote:

MyScratchedAccount wrote:

Urgent post!:
Hopefully people can't use it to hack any cloud project because it said on any project. So I may not use it because of a chance of hacking
You can only hack projects / users / cloud variables if you know the password/session id of that user. But if so, it's not scratchattach's fault.
No you don’t, anybody can modify any cloud variable
WHAT?!?!?!? It is really possible! But why hasn't Scratch fixed this big security bug yet?
how would they fix that in the first place? there is just no way of allowing someone to not modify cloud variables externally (you could, of course emulate all code containing cloud stuff serverside, but that would be quite ressource intensive and probaply wouldnt make much sense)
honestly it's the coder to deal with this, maybe generate an access key that allows proper editing. and then when the project detects a cloud variable change and the access key is not valid/there is no access key, it reverts automatically.

(edit: the programmer codes this)

Last edited by silvxrcat (Jan. 18, 2023 17:50:31)



hi im silver

























i eat orphan babies
MagicCrayon9342
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

meatloaf28 wrote:

Is this also available for iPad iOS?
If you install a terminal and a python interpreter (i doubt you can install either)

meatloaf28
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

silvxrcat wrote:

meatloaf28 wrote:

Is this also available for iPad iOS?
…no? it's python
They have python on iPad iOS.

I have started a company called “JoyStick Studios.Inc” where we are currently working on a RPG called chainimals.




ScratchCatHELLO
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

MagicCrayon9342 wrote:

meatloaf28 wrote:

Is this also available for iPad iOS?
If you install a terminal and a python interpreter (i doubt you can install either)

sure you can.





ScratchCatHELLO
I have 5600+ posts, I've been on scratch for 5 1/2 years, I'm a Forum Helper™ and I have a Scratch Wiki account!
I like: Python, CSS, Javascript, Rust



Python 3 Text Adventure
cool new browser game - cursed laughing-crying emoji - Illuminati - you know waterbenders, but do you know stock-imagebenders? - snek - vibin' - Bump song (vevo) - Speed bump - yee - fred - m i c k e y
MagicCrayon9342
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

ScratchCatHELLO wrote:

sure you can.

-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

silvxrcat wrote:

-FreeEngines- wrote:

KROKOBIL wrote:

applejuiceproduc wrote:

KROKOBIL wrote:

MyScratchedAccount wrote:

Urgent post!:
Hopefully people can't use it to hack any cloud project because it said on any project. So I may not use it because of a chance of hacking
You can only hack projects / users / cloud variables if you know the password/session id of that user. But if so, it's not scratchattach's fault.
No you don’t, anybody can modify any cloud variable
WHAT?!?!?!? It is really possible! But why hasn't Scratch fixed this big security bug yet?
how would they fix that in the first place? there is just no way of allowing someone to not modify cloud variables externally (you could, of course emulate all code containing cloud stuff serverside, but that would be quite ressource intensive and probaply wouldnt make much sense)
honestly it's the coder to deal with this, maybe generate an access key that allows proper editing. and then when the project detects a cloud variable change and the access key is not valid/there is no access key, it reverts automatically.

(edit: the programmer codes this)
but what prevents an attacker frmo just generating such an accesss key aswell
-FreeEngines-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

MagicCrayon9342 wrote:

meatloaf28 wrote:

Is this also available for iPad iOS?
If you install a terminal and a python interpreter (i doubt you can install either)
on samsung you can install termux which is essentially a linux terminal emulator that can do anything that your linux terminal could do, but again, not for ipads
DifferentDance8
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

-FreeEngines- wrote:

MagicCrayon9342 wrote:

meatloaf28 wrote:

Is this also available for iPad iOS?
If you install a terminal and a python interpreter (i doubt you can install either)
on samsung you can install termux which is essentially a linux terminal emulator that can do anything that your linux terminal could do, but again, not for ipads
for ipads, there's iSH

SOMEONE PLEASE HELP ME
MonkeyBean2
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

TimMcCool wrote:

JloAu wrote:

Hi! This may be a dumb question but can we connect to the cloud of multiple projects at the same time in a single python program? Or how about the scratch cloud and the turbowarp cloud?
Thank you for your help
Yes, you can connect to multiple projects
Yeah, once I connected griffpatch's MMO platformer to a remix of mine


9NAwRfSR-%dWFS$a$g&zBMTj2?;jvS?L5%^X%qpCX|A<*paJ=lU07c)wmt$v{TxL5



scratchGui.timeTravel.year = '2020'
Erti36
Scratcher
13 posts

scratchattach - A Scratch API wrapper (Python)

Knightbot63
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

Erti36 wrote:

??????
https://replit.com/@Erti36/Test-Scratch#main.py
You have to use session id's instead of the password due to Scratch's Replit ban.

Team 0% has cleared every Super Mario Maker 1 online level!
Trimming the Herbs being a TAS after 6 years of attempts.
Highlight + Shift + Down

2 Years on Scratch……
Real grind to 1,000,000 Animal Crossing Nook Miles, Current: 900,050
I don't use Scratch as much as I used to like in 2022-2023… Heavily inactive due to School and a big project.
This part you're seeing is a Signature. This has nothing to do with my post.
I have 2 more Challenge Board tiles until I 100% the Challenge Board in Smash Ultimate. Last ones are from online.

Captain Falcon VS. Level 9 Captain Falcon. I won with 3 stocks.

:)




































Subscribe to Caseoh_ on twitch.
I want to work on making it possible to put caseoh on the ban page for Scratch.
Erti36
Scratcher
13 posts

scratchattach - A Scratch API wrapper (Python)

Knightbot63 wrote:

Erti36 wrote:

??????
https://replit.com/@Erti36/Test-Scratch#main.py
You have to use session id's instead of the password due to Scratch's Replit ban.
It turns out that you can't Replit?????
i write through a translator if anything……

Last edited by Erti36 (Jan. 19, 2023 15:28:14)

Knightbot63
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

Erti36 wrote:

It turns out that you can't Replit?????
You can still use replit but the only things that work are getting things and setting cloud variables.
Also, you can get your session ID from the lock where the cookies are.

Team 0% has cleared every Super Mario Maker 1 online level!
Trimming the Herbs being a TAS after 6 years of attempts.
Highlight + Shift + Down

2 Years on Scratch……
Real grind to 1,000,000 Animal Crossing Nook Miles, Current: 900,050
I don't use Scratch as much as I used to like in 2022-2023… Heavily inactive due to School and a big project.
This part you're seeing is a Signature. This has nothing to do with my post.
I have 2 more Challenge Board tiles until I 100% the Challenge Board in Smash Ultimate. Last ones are from online.

Captain Falcon VS. Level 9 Captain Falcon. I won with 3 stocks.

:)




































Subscribe to Caseoh_ on twitch.
I want to work on making it possible to put caseoh on the ban page for Scratch.
MonkeyBean2
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

Knightbot63 wrote:

Erti36 wrote:

It turns out that you can't Replit?????
You can still use replit but the only things that work are getting things and setting cloud variables.
Also, you can get your session ID from the lock where the cookies are.
Scratch has blocked replit from accessing scratch, with the exception of clouddata.scratch.mit.edu


9NAwRfSR-%dWFS$a$g&zBMTj2?;jvS?L5%^X%qpCX|A<*paJ=lU07c)wmt$v{TxL5



scratchGui.timeTravel.year = '2020'
Knightbot63
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

MonkeyBean2 wrote:

Scratch has blocked replit from accessing scratch, with the exception of clouddata.scratch.mit.edu
kk
~~~
Error? Here's the code:
import os
import scratchattach as scratch3
from replit import db
Session = os.environ["sessionID"]
session = scratch3.Session(Session, username="Knightbot63")
conn = scratch3.TwCloudConnection("790734555")
client = scratch3.TwCloudRequests(conn)
...Code...
@client.event
def on_request(request):
    print("Received request", request.name, request.requester, request.arguments, request.timestamp, request.id)
@client.event
def on_unknown_request(request):
    print("Received unknown request", request.name, request.requester, request.arguments, request.timestamp, request.id)
@client.event
def on_error(request, e):
    print("Request: ", request.name, request.requester, request.arguments, request.timestamp, request.id)
    print("Error that occured: ", e)
   
def start():
  client.run()
Then, it gives me:
Traceback (most recent call last):
  File "main.py", line 1, in <module>
    from attach import start
  File "/home/runner/CatBits-Server/attach.py", line 8, in <module>
    conn = scratch3.TwCloudConnection("790734555")
TypeError: __init__() takes 1 positional argument but 2 were given

Team 0% has cleared every Super Mario Maker 1 online level!
Trimming the Herbs being a TAS after 6 years of attempts.
Highlight + Shift + Down

2 Years on Scratch……
Real grind to 1,000,000 Animal Crossing Nook Miles, Current: 900,050
I don't use Scratch as much as I used to like in 2022-2023… Heavily inactive due to School and a big project.
This part you're seeing is a Signature. This has nothing to do with my post.
I have 2 more Challenge Board tiles until I 100% the Challenge Board in Smash Ultimate. Last ones are from online.

Captain Falcon VS. Level 9 Captain Falcon. I won with 3 stocks.

:)




































Subscribe to Caseoh_ on twitch.
I want to work on making it possible to put caseoh on the ban page for Scratch.
Mast_Scratch
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

Knightbot63 wrote:

MonkeyBean2 wrote:

Scratch has blocked replit from accessing scratch, with the exception of clouddata.scratch.mit.edu
kk
~~~
Error? Here's the code:
import os
import scratchattach as scratch3
from replit import db
Session = os.environ["sessionID"]
session = scratch3.Session(Session, username="Knightbot63")
conn = scratch3.TwCloudConnection("790734555")
client = scratch3.TwCloudRequests(conn)
...Code...
@client.event
def on_request(request):
    print("Received request", request.name, request.requester, request.arguments, request.timestamp, request.id)
@client.event
def on_unknown_request(request):
    print("Received unknown request", request.name, request.requester, request.arguments, request.timestamp, request.id)
@client.event
def on_error(request, e):
    print("Request: ", request.name, request.requester, request.arguments, request.timestamp, request.id)
    print("Error that occured: ", e)
   
def start():
  client.run()
Then, it gives me:
Traceback (most recent call last):
  File "main.py", line 1, in <module>
    from attach import start
  File "/home/runner/CatBits-Server/attach.py", line 8, in <module>
    conn = scratch3.TwCloudConnection("790734555")
TypeError: __init__() takes 1 positional argument but 2 were given

the code's different and the error is different as well, error says from attach import start, but in code I can't find it…


wvzack
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

i am writing this code into the python thing


import os
os.system(“pip install -U scratchattach”)
1
import scratchattach as scratch3
i get this error
Traceback (most recent call last):
File “<pyshell#9>”, line 1, in <module>
import scratchattach
ModuleNotFoundError: No module named ‘scratchattach’
i have no idea why this script is not working i got no error when i download it so why wont this work

Likes: Programing (python scratch Lua c++ I am bad at c++ a) Aiviation (B787 Queen of the sky F35) Mountain Biking and Messing around with computers (not a gamer at all)
My projects I am most happy with also the few “polished games I have:
grandpasp
Scratcher
36 posts

scratchattach - A Scratch API wrapper (Python)

More information on the failure of project.comments()

I've confirmed that user.comments() works. It returns a list of dictionaries.

project.comments() continues to return an empty list

Tim, please help!

Powered by DjangoBB