socio4health.utils.extractor_utils.download_request#

socio4health.utils.extractor_utils.download_request(url, filename, download_dir)[source]#

Download a file from the specified URL and save it to the given directory.

Parameters:
  • url (str) – The URL of the file to download.

  • filename (str) – The name to save the downloaded file.

  • download_dir (str) – The directory where the file will be saved.

Returns:

The path to the downloaded file, or None if the download failed.

Return type:

str