def strip_link(url): if validators.url(url) == True: return url.split("/")[3] else: exit("[!] Not a valid URL")