human
how to get domain part of a url in.
assistant
Here is a Python function to get domain part of a URL

import urllib.parse

def get_domain(url):
        """Get domain part of a url."""
        return url.split("/")[0]

# Enter the url
url = "https://www.google.com/"

# Calling the function
print((get_domain(url)))

#Example Output
# https:

#Remember to inspect code for bugs.