From ba6a8d14697ab321005b63cedf7761b72da9cbea Mon Sep 17 00:00:00 2001 From: fn2006 Date: Thu, 29 Sep 2022 15:11:12 +0100 Subject: [PATCH] Add getToken.py --- scripts/getToken.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/getToken.py diff --git a/scripts/getToken.py b/scripts/getToken.py new file mode 100644 index 00000000..92a2f526 --- /dev/null +++ b/scripts/getToken.py @@ -0,0 +1,14 @@ +# Reimplementation of https://git.sakamoto.pl/domi/curseme/-/blob/meow/getToken.sh in python + +import io +import requests +from re import search + +# i have no idea why this is ripping the key from 4chan but what works works i guess +token = requests.get("https://arch.b4k.co/vg/thread/388569358").text +token = search("and put .*? ", token).group(0) +token = search("\$.*$", token).group(0).strip() + +output = io.open("token", "w") +output.write(token) +output.close()