download_data¶

download_data(url, save_path=None, save_dir=None, *, overwrite=False, unzip=False)[source]¶

Download data from a given URL to location.

The function can overwrite data if demanded else no action is taken.

Parameters:
  • url (str) – URL from where to download the data.

  • save_path (PathLike) – Location to download the data (including filename). Can’t be used with save_dir.

  • save_dir (PathLike) – Directory to save the data. Can’t be used with save_path.

  • overwrite (bool) – True to force overwriting of existing data, default=False

  • unzip (bool) – True to unzip the data, default=False

Return type:

Path