Skip to content

Instantly share code, notes, and snippets.

@LapisOnTheMoon
LapisOnTheMoon / notegen.py
Last active January 6, 2023 18:25
Generates a README.md with TryHackMe tasks and questions automatically.
#!/usr/bin/python3
import requests
import sys
from datetime import datetime
import re
tag_re = re.compile(r'(<!--.*?-->|<[^>]*>)')
name = "" # change this
code = ""
def get_room_code(s):