TimMcCool / scratchattach

Scratch API wrapper with support for almost all site features and cloud requests framework
MIT License
173 stars 44 forks source link

How to save session? #246

Open blazgocompany opened 3 days ago

blazgocompany commented 3 days ago

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.

TimMcCool commented 2 days ago

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)