code: def get_ip_address(domain):
      
      if "://" not in domain:
          domain = "http://" + domain
  
      hostname = urlparse(domain).netloc
  
      if not hostname:
          raise ValueError("Can't parse hostname!")
  
      return socket.gethostbyname(hostname)
docs: Get IP address for given `domain`. Try to do smart parsing.
  
      Args:
          domain (str): Domain or URL.
  
      Returns:
          str: IP address.
  
      Raises:
          ValueError: If can't parse the domain.