import http.server import urllib.parse class EingenerHandler(http.server.BaseHTTPRequestHandler): def do_GET(self): self.send_response(200) self.end_headers() parsed = urllib.parse.urlparse(self.path) query = parsed.query query_components = urllib.parse.parse_qsl(query) query_params = list(query_components) param1, param2 = None, None response = "" if len(query_params) > 0: param1 = int(query_params[0][1]) param2 = int(query_params[1][1]) for i in range(param1, param2 + 1): response += "