download_url()

audeer.download_url(url, destination, *, force_download=False, verbose=False)[source]

Download URL to destination.

Parameters
  • url (str) – URL of file to download

  • destination (str) – file or folder to store file locally

  • force_download (bool) – if True forces the artifact to be downloaded even if it exists locally already

  • verbose (bool) – if True a progress bar is shown

Return type

str

Returns

path of locally stored file

Examples

>>> dst = download_url("https://audeering.github.io/audeer/_static/favicon.png", ".")
>>> os.path.basename(dst)
'favicon.png'