Need a way to extract a domain name without the subdomain from a url using Python urlparse.
For example, I would like to extract \"google.com\" from a f
\"google.com\"
from tld import get_tld from tld.utils import update_tld_names update_tld_names() result=get_tld('http://www.google.com') print 'https://'+result
Input: http://www.google.com
Result: google.com