Add getToken.py

This commit is contained in:
fn2006 2022-09-29 15:11:12 +01:00
parent 11f97a78fe
commit ba6a8d1469

14
scripts/getToken.py Normal file
View File

@ -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()