download_file#
- sunpy.util.net.download_file(url, directory, default='file', overwrite=False)[source]#
Download a file from a url into a directory.
Tries the “Content-Disposition”, if unavailable, extracts name from the URL. If this fails, the
default
keyword will be used.- Parameters:
- Returns:
str
– The file path for the downloaded file.