Table Of Contents
Table Of Contents, fname=None, dirname=None, overwrite=False, retries=5)[source]

Download an given URL

  • url (str) – URL to download
  • fname (str, optional) – filename of the downloaded file. If None, then will guess a filename from url.
  • dirname (str, optional) – output directory name. If None, then guess from fname or use the current directory
  • overwrite (bool, optional) – Default is false, which means skipping download if the local file exists. If true, then download the url to overwrite the local file if exists.
  • retries (integer, default 5) – The number of times to attempt the download in case of failure or non 200 return codes

The filename of the downloaded file

Return type: