Accepts a URL, downloads and optionally caches the result returning the filename, with a name determined by the file’s MD5 hash. If cache=True and the file is present in the cache, just returns the filename.
Parameters: | remote_url : str
cache : bool, optional
show_progress : bool, optional
timeout : float, optional
|
---|---|
Returns: | local_path : str
|
Raises: | urllib2.URLError, urllib.error.URLError
|