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

import urllib.request, urllib.parse, urllib.error

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

# Enter the url
url = 'http://www.google.com/'

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

#Example Output
# http:

#Remember to inspect code for bugs.