Given an URL as a string, write a program in Python to find the domain name.
url = "https://www.google.com"
def get_domain_name(url): 
    return url.split("/")[2]

print(get_domain_name("https://www.google.com"))  # prints www.google.com