This is the get_tld code:
from tld import get_tld
res = get_tld("http://toystory.disney.com/toy-story", as_object=True)
print(res.domain)
I'd like to apply this to an entire column in a dataset. I'm only interested in the top level domain and not the subdomain nor the suffix.