How to Download an Entire Website (Wget Tutorial)

Updated on

Wget is a free tool that can be used to download entire websites. It runs on Windows, Mac, and Linux.

First I’ll explain how to install Wget, followed by an explanation of how to use it.

How to Download an Entire Website Using Wget

To download a website with Wget, use the following command in a terminal, replacing example.com with the domain name of the site you want to download.

wget -m -k -K -E https://example.com/

After the command runs, you should see a directory with the name of your site. The files will be in there.

How the Command Works

The name of the command is wget. Each of the letters that begins with a dash is called a flag. Here’s what those specific flags do:

You can read more details about the options on Explain Shell.

There are additional settings that can be viewed by typing man wget in a terminal.

Tagged with: Programming Web Scraping

Feedback and Comments

What did you think about this page? Do you have any questions, or is there anything that could be improved? You can leave a comment after clicking on an icon below.