Write a function that, given a string that represents a URL, parses and extracts the parts of the URL (protocol, domain, port, path, query, and fragment).
Write a function that, given a string that represents a URL, parses and extracts the parts of the URL (protocol, domain, port, path, query, and fragment).