I am tring to extract the domain names out of a list of urls. just like in https://stackoverflow.com/questions/18331948/extract-domain-name-from-the-url My problem is th
It seems you can use urlparse https://docs.python.org/3/library/urllib.parse.html for that url, and then extract the netloc.
And from the netloc you could easily extract the domain name by using split