Python one-liner:
def domain_name(url): return url.split("/")[2].split(".")[-2]
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.
re: Daily Challenge #89 - Extract domain name from URL VIEW POST
FULL DISCUSSIONPython one-liner: