I am getting output "com" instead of "google.com"
I have tried changing sites name but every site is showing "com"
from tld import get_tld
def get_domain_name(url):
domain_name= get_tld(url)
return domain_name
print(get_domain_name("https://www.google.com"))
I expect output to be "google.com" I have tried this code on Piaza workspace terminal