urllib.splithost()

urllib.splithost(url)[source]

splithost(‘//host[:port]/path’) –> ‘host[:port]’, ‘/path’.