Wget is a non-interactive command-line utility to download resources from a specified URL. Due to non-interaction, wget can operate in the background or before the user logs in. The program is specially designed for poor connections, making this tool particularly robust in unstable conditions. Although wget is not built into macOS, users can easily download and install with Homebrew, the best Mac package manager available.
Learn about the wget command-line utility on Mac
1. Download and install Homebrew

To install Homebrew, open the Terminal window and execute the following command, which is obtained from the Homebrew website (reference link https://brew.sh/):
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Users can see the command called curl, another command-line utility to download files from a URL, built-in with the Ruby installation included in macOS.
2. Install wget

When the installation is complete, we will use Homebrew to install wget. In Terminal, run the following command to download and install wget:
brew install wget Users will receive direct updates about the download process and install any required dependencies to run wget on the system.
If Homebrew is already installed, remember to run the brew update command to get the latest copies of all the recipes (software packages).
3. Use wget

The purpose of wget is to download content from the URL. It is a quick and simple non-interactive tool to download files from any publicly accessible URL.
Download a single file
Like the curl command, wget takes the remote resource through the URL and saves it to a specified location on the computer. The operation command structure is as follows:
wget -O path/to/local.copy http://example.com/url/to/download.html The above command will save the specified file in the URL to the specified location on the computer. If the -O flag is excluded, the specified URL will be downloaded to the current directory.
Download a recursive directory
To download the entire directory tree with wget, users need to use the -r / - recursive and -np / - no-parent flags as follows:
wget -e robots=off -r -np https://www.w3.org/History/19921103-hypertext/hypertext/ This command will cause wget to follow any links found on documents in the specified directory, download recursively the entire URL specified.
The command also includes -e robots = off , ignoring the restrictions in the robots.txt file . In general, disabling robot.txt to prevent shortened downloads is a bad idea.
4. Other wget flags
In addition to the above flags, some of the following wget flags are the most useful:
Download control
Adjust the logging level
The article covers most of the use of wget, but this download has even more capabilities, you can learn more during use.
Hope you are succesful.
ncG1vNJzZmismaXArq3KnmWcp51ktbDDjK2mZqGeqMGiuMtmmKecXarApnnWoJytZZ%2Bjeq6twg%3D%3D