download_file#
- astroquery.esa.utils.download_file(url, session, *, params=None, path='', filename=None, cache=False, cache_folder=None, verbose=False)[source]#
Download a file in streaming mode using an existing session
- Parameters:
- url: str, mandatory
URL to be downloaded
- session: ESAAuthSession, mandatory
session to download the file, including the cookies from ESA login
- params: dict, optional
Additional params for the request
- path: str, optional
Path where the file will be stored
- filename: str, optional
filename to be given to the final file
- cache: bool, optional, default False
flag to store the file in the Astroquery cache
- cache_folder: str, optional
folder to store the cached file
- verbose: boolean, optional, default False
Write the outputs in console
- Returns:
- The request with the modified url