blob: 8c6cbec771ef499654c4f4968c789d4c4c2dc955 (
plain)
1
2
3
4
5
6
|
import os
import sys
import xmlrpc.client
proxy = xmlrpc.client.ServerProxy(f"http://localhost:{os.environ.get("PORT", 8000)}")
print("\n".join(proxy.search(sys.argv[1], sys.argv[2])))
|