def is_url(s): """Checks if a string is a valid URL :param str s: An input string :return: Is the string a valid URL? :rtype: bool """ return urlparse(s).scheme != ""