Add getToken.py
This commit is contained in:
parent
11f97a78fe
commit
ba6a8d1469
14
scripts/getToken.py
Normal file
14
scripts/getToken.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user