View Source Downloadex (downloadex v0.1.0)

Downloadex is a library to download large number of files in parallel.

Link to this section Summary

Functions

downloads a list of urls to a given directory in parallel.

Link to this section Functions

Link to this function

download(urls, path \\ ".", n_workers \\ 4, headers \\ [])

View Source

downloads a list of urls to a given directory in parallel.

examples

Examples

iex> Downloadex.download(
  [ "https://example.com/file1.txt",
    "https://example.com/file2.txt",
    "https://example.com/file3.txt",
    "https://example.com/file4.txt"],
  "./images",
  3 # number of parallel downloads
)
:ok