speechbrain.utils.check_url module
Libraries for automatic finding URLs in the files and checking if they are reachable.
- Authors
Mirco Ravanelli 2022
Summary
Functions:
This test checks if the files in the specified folders contain broken URLs |
|
Cheks if an URL is broken |
|
This function searches for all the URLs in the specified file list |
|
This function searches for the URLs in the specified file. |
Reference
- speechbrain.utils.check_url.get_url(path)[source]
This function searches for the URLs in the specified file.
- Parameters
path (path) – Path of the file where to search for URLs.
- Returns
urls – a list of all the URLs found in the specified path.
- Return type
- speechbrain.utils.check_url.get_all_urls(file_lst, avoid_urls)[source]
This function searches for all the URLs in the specified file list
- speechbrain.utils.check_url.check_url(url)[source]
Cheks if an URL is broken
- Parameters
url (string) – URL to check
- Returns
False if the URL is broken, True otherwise.
- Return type
Bool