archive
/
lantern
Archived
1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
lantern/examples/read_in.py

12 lines
176 B
Python
Executable File

#!/usr/bin/env python3
import sys
import json
print("<h1>Hello!</h1>")
request = json.loads(sys.stdin.read())
print("<p>You're looking at {}.</p>".format(request['url']))