Download_file

The download.download_file() function allows the user to download locally on his device files from the internet.

This tool offers simple error handling like checking URL correctness, avoids downloading files multiple times and offers a basic progress bar to check the download status (useful for large datasets download).

download.download_file(url, filename)[source]

Function handling download of file objects from URL addresses.

Parameters
  • url (str) – URL address from where to download.

  • filename (str or Path.like object) – name of the downloaded file

Raises
  • URLRequired – if “url” is invalid

  • MissingSchema – if “url” is invalid

  • InvalidSchema – if “url” is invalid

  • InvalidURL – if “url” is invalid

Returns

None