Wget

From wikinotes

wget helps you download files, or entire websites.

Documentation

man wget https://man.archlinux.org/man/extra/wget/wget.1.en

Usage

common flags

wget \
  --recursive \
  --convert-links \
  --no-parent \
  --tries=1 \
  --timeout=5 \
  -R "*exclude/me*" \
  'https://foo.domain.com'

Tricks

# execute wget, using an alternative hosts file
# see: man gethostbyname
env HOSTALIASES=/foo/hosts \
  wget ...