Module utils

Module utils 

Source

Functionsยง

get_filename_from_url_or_default
Tries to extract the filename from a URL. If the URL cannot be parsed or does not contain a filename in the path, it returns the provided default filename.
print
Print a message to the console if not in quiet mode.
resolve_output_path
Resolves the final output path. If output_arg is None, extracts filename from URL. If output_arg is a directory, appends filename from URL. If output_arg is a file path, uses it as is.