def METHOD_NAME(self, url):
    # Strips protocol and gets hostname from URL.
    url_parse = urlparse(url)
    protocol = url_parse.scheme
    hostname = url_parse.netloc
    port = url_parse.port
    if protocol == 'https':
        port = 443
    elif protocol == 'http':
        if not port:
            port = 80
    address = self.resolve_hostname(hostname)
    return {'protocol': protocol, 'hostname': hostname, 'port': port, 'address': address}