MCPcopy Create free account
hub / github.com/microsoft/Webwright / _host

Function _host

assets/task_showcase/app.py:136–141  ·  view source on GitHub ↗
(u: str)

Source from the content-addressed store, hash-verified

134
135
136def _host(u: str) -> str:
137 from urllib.parse import urlparse
138 try:
139 return urlparse(u).netloc.replace("www.", "") or u
140 except Exception:
141 return u
142
143
144def collect_pages(steps: list[dict], fallback_site: str | None) -> list[dict]:

Callers 1

collect_pagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected