code: def download_file(url, dst_path):
      
      request = requests.get(url, stream=True)
      with open(dst_path, 'wb') as downloaded_file:
          request.raw.decode_content = True
          shutil.copyfileobj(request.raw, downloaded_file)
docs: Download a file from a url