MCPcopy Create free account
hub / github.com/OpenOSINT/OpenOSINT / start_server

Function start_server

media/record_demo.py:83–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82
83def start_server() -> subprocess.Popen:
84 log(f"Starting OpenOSINT web server on port {PORT}...")
85 proc = subprocess.Popen(
86 ["openosint", "web", "--no-browser", "--port", str(PORT)],
87 stdout=subprocess.DEVNULL,
88 stderr=subprocess.DEVNULL,
89 )
90 time.sleep(3)
91 if proc.poll() is not None:
92 sys.exit(
93 "[record_demo] ERROR: web server exited immediately — "
94 "is 'openosint' installed with all web dependencies?"
95 )
96 log("Server started.")
97 return proc
98
99
100def convert_video(webm_path: Path) -> None:

Callers 1

mainFunction · 0.85

Calls 1

logFunction · 0.85

Tested by

no test coverage detected