GNU Wget (or just Wget, formerly Geturl) is a computer program that retrieves content from web servers, and is part of the GNU Project. Its name is derived from World Wide Web and get. It supports downloading via HTTP, HTTPS, and FTP protocols.
Typical usage of GNU Wget consists of invoking it from the command line, providing one or more URLs as arguments.
# Download the title page of example.com to a file # named "index.html". wget http://www.example.com/ # Download Wget's source code from the GNU ftp site. wget ftp://ftp.gnu.org/pub/gnu/wget/wget-latest.tar.gz
More complex usage includes automatic download of multiple URLs into a directory hierarchy.
# Download *.gif from a website # (globbing, like "wget http://www.server.com/dir/*.gif", only works with ftp) wget -e robots=off -r -l1 --no-parent -A.gif ftp://www.example.com/dir/ # Download the title page of example.com, along with # the images and style sheets needed to display the page, and convert the # URLs inside it to refer to locally available content. wget -p -k http://www.example.com/ # Download the entire contents of example.com wget -r -l 0 http://www.example.com/