Convert any unlocked HackTheBox Academy module into a full offline HTML package - including images, assets, syntax highlighting, and a TOC sidebar. βοΈπ
This tool was tested on 50+ modules without errors. Perfect for offline studying or archiving.
-
βΆοΈ Video Tutorial Tutorial Vid.mp4
Both files are located in the resources/ folder of the repository.
Install the Python packages needed by the script:
pip install requests beautifulsoup4 markdown pygmentsYou must be logged in to academy.hackthebox.com to download module content.
Follow this mini-guide:
- Open Developer Tools (F12)
- Go to the Network tab
- Click any request from
academy.hackthebox.com - Find the Request Headers
- Copy the Cookie field
- Paste it into
cookie.txt
β Refer to the screenshot here:

β Or watch the video tutorial here:
Basic usage:
python generate_offline.py --module <MODULE_ID>Example:
python generate_offline.py --module 278You can also provide your cookie manually:
python generate_offline.py --module 278 --cookie "auth_sid=..."Check the module URL:
https://academy.hackthebox.com/beta/module/278
β‘οΈ The number 278 is the module ID.
After parsing, you will get a folder like:
278. Web Requests/
βββ index.html
βββ style.css
βββ pygments.css
βββ assets/
βββ 0.html
βββ 1.html
βββ 2.html
βββ image1.png
βββ ...
Open:
index.html
Your module is now 100% offline and fully navigable.
Pull requests are welcome. Feel free to expand compatibility, add new features, improve UI, or help optimize parsing.