Check if the given URL is valid by verifying if it has a valid scheme and netloc. Parameters: url (str): The URL to be validated. Returns: bool: True if the URL is valid, False otherwise.
(url)
| 90 | |
| 91 | |
| 92 | def is_valid_url(url): |
| 93 | """ |
| 94 | Check if the given URL is valid by verifying if it has a valid scheme and netloc. |
| 95 | |
| 96 | Parameters: |
| 97 | url (str): The URL to be validated. |
| 98 | |
| 99 | Returns: |
| 100 | bool: True if the URL is valid, False otherwise. |
| 101 | """ |
| 102 | fld = get_fld(url) |
| 103 | if not fld: |
| 104 | return False |
| 105 | |
| 106 | parsed_url = urlparse(url) |
| 107 | return bool(parsed_url.scheme and parsed_url.netloc) |
| 108 | |
| 109 | |
| 110 | def getting_percontage_of_match(string: str, matched_string: str) -> float: |