Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EASY233/Finger
/ parse_host
Method
parse_host
lib/IpFactory.py:22–26 ·
view source on GitHub ↗
(self,url)
Source
from the content-addressed store, hash-verified
20
self.cdns = json.load(file)
21
22
def
parse_host(self,url):
23
host = urlsplit(url).netloc
24
if
':'
in host:
25
host = re.sub(r
':\d+'
,
''
, host)
26
return
host
27
28
def
factory(self, url):
29
try
:
Callers
1
factory
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected