MCPcopy
hub / github.com/DedSecInside/TorBot / parse_hostname

Function parse_hostname

torbot/modules/linktree.py:143–148  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

141
142
143def parse_hostname(url: str) -> str:
144 hostname = parse.urlsplit(url).hostname
145 if hostname is not None:
146 return hostname
147
148 raise Exception('unable to parse hostname from URL')
149
150
151def parse_links(html: str) -> list[str]:

Callers 1

_append_nodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected