From b37c178f1cbce860069896f7b8c4989d1e8bb805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Sun, 30 Jul 2023 18:02:56 +0900 Subject: [PATCH] update login.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- {test/python => tools}/login.py | 3 +++ 1 file changed, 3 insertions(+) rename {test/python => tools}/login.py (85%) diff --git a/test/python/login.py b/tools/login.py similarity index 85% rename from test/python/login.py rename to tools/login.py index 29e2762..1f46646 100644 --- a/test/python/login.py +++ b/tools/login.py @@ -12,3 +12,6 @@ cookies = auth_handler.get_cookies() data = json.dumps(cookies.get_dict()) print(base64.b64encode(data.encode("utf-8")).decode("utf-8")) + +with open("cookie.json", "w") as f: + f.write(data)