Skip to content

GnarLito/tryhackme.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version Python supported versions

Maintained Python wrapper for TryHackMe public API
This fork is unofficial and not associated with TryHackMe, but i would love to.

Installation

pip3 install tryhackme.py

Example

import tryhackme

client = tryhackme.Client(session="<tryHackMe cookie: `connect.sid`>") # Logging in is optional
client.get_stats() # {'publicRooms': 203, 'totalUsers': 88017, 'cloneableRooms': 967}

For more info over getting the connect.sid visit #1

API documentation

For the API documentation please visit the TryHackMe-API-Doc

Contributing

You're welcome to create Issues/Pull Requests with features you'd want to see

License

MIT LICENSE