utils
dataset
download_files
driver_utils
driver_wait_utils
path_utils
- toolium.utils.path_utils.get_valid_filename(s, max_length=100)[source]
Returns the given string converted to a string that can be used for a clean filename. Removes leading and trailing spaces; converts anything that is not an alphanumeric, dash or underscore to underscore; converts behave examples separator ` – @` to underscore. It also cuts the resulting name to max_length.
@see https://github.com/django/django/blob/master/django/utils/text.py