This is a Python package that allows you to acquire your RecNet access token and more with your cookie! 🍪
Download the recnetlogin folder and place it in your project.
pip installation once this is stable.
Storage
or Application
tab on the topCookies
> https://rec.net
on the directory__Secure-next-auth.session-token
by filtering the cookiesEnvironment Variables...
New
under System VariablesRN_COOKIE
and paste the copied valuePress OK on all the opened tabs
Restart your computer for it to take effect
.env.secret
in your project's directoryRN_SESSION_TOKEN=
in the file and paste the copied valuernl = RecNetLogin(env_path=".env.secret") # Env path defaults to local directory
from RecNetLogin import RecNetLogin
rnl = RecNetLogin()
token = rnl.get_token()
decoded_token = rnl.get_decoded_token() # JWT decoded
print(token, decoded_token)
from recnetlogin import RecNetLogin
rnl = RecNetLogin(env_path=".env.secret")
# Fetch using RecNetLogin's HTTPX client
r = rnl.client.get("https://accounts.rec.net/account/me")
for key, value in r.json().items():
print(key, value)
# Close the client once done
rnl.close()