scratchattach
scratchattach copied to clipboard
How to save session?
I login to scratch using scratch3.login, which returns a session. How can I save that session so that I don't have to repeatedly sign in.
save the session id: session.session_id
the next time you run your program, log in using the session id:
session = scratch3.Session("session_id")
(this applies to scratchattach 1.7.4)
For scratchattach 2.0.0, see https://github.com/TimMcCool/scratchattach/wiki/Documentation#logging-in