Intel471Ex.Downloader (intel471_ex v0.1.0)

File downloader for Intel 471 Titan API using Req.

Summary

Functions

Downloads a file from Intel 471 Titan API.

Downloads a file from Intel 471 Titan API and automatically extracts the filename from the URL.

Functions

download_file(url, destination, params \\ %{}, config \\ nil)

@spec download_file(String.t(), String.t(), map(), map() | nil) ::
  {:ok, String.t()} | {:error, any()}

Downloads a file from Intel 471 Titan API.

Parameters

Returns

  • {:ok, path} - Successful download with path to saved file
  • {:error, reason} - Error with reason

download_file_auto(url, destination_dir \\ "downloads", params \\ %{}, config \\ nil)

@spec download_file_auto(String.t(), String.t(), map(), map() | nil) ::
  {:ok, String.t()} | {:error, any()}

Downloads a file from Intel 471 Titan API and automatically extracts the filename from the URL.

Parameters

  • url: Full URL to the file
  • destination_dir: Directory where the file should be saved (default: "downloads")
  • params: Query parameters (optional)
  • config: Optional configuration override

Returns

  • {:ok, path} - Successful download with path to saved file
  • {:error, reason} - Error with reason