I would like to write a function when it's given a URL as a string, parses out just the domain name and returns it as a string.
url = "http://google.com/youtube/win" > domain name = "google"
url = "http://www.foodpub.com/home" > domain name = "foodpub"
url = "http://www.foodpub.com/home" > domain name = "foodpub"
url = "https://www.games.com" > domain name = "games"`
I have figure that you would need to import 'from urllib.parse import urlparse'