How to download/install Wget for windows easily

Felipe A. Moreno
2 min readDec 27, 2020

--

Well, this post is very useful if you want to download files from a remote URL and you have been worked with a Linux system.
In my case, I have been working with Linux since 2012, so when I come back to Windows, I have the necessity to do the same task as I did on Linux, e.g. Wget.

WGET is a free tool to download files and crawl websites via the command line. WGET offers a set of commands that allow you to download files (over even quite bad network conditions) with features that mean you can do useful things like resume broken downloads.

So, Wget is a very useful program when you want to download information/data from remote URLs in just one command line or you want to make a back up of your website or move files, etc.

What does WGET Do?

Once installed, the WGET command allows you to download files over the TCP/IP protocols: FTP, HTTP, and HTTPS.
Let get in: To run WGET you need to download, unzip and install manually.

Download the Windows binaries collection at Eternally Bored here for the later versions and the faster 64 bit builds.

Run WGET from anywhere

Firstly, we need to determine where to copy WGET.exe. To do this, we just need to copy the .exe file into some “Path” environment variable, I choose to copy the wget.exe file into the c:\Windows\System32 folder location.

Write path in the cmd to see the environment variables

After this step, You can use the wget like always from anywhere of your prompt (any location in your directory).

Examples using Wget

The Gnu.org WGET manual is a particularly useful resource for those inclined to really learn the details.

To mirror your site execute this command (-r is recursive and -np is to avoid to download paretn directory):

wget -r -np https://www.yoursite.com

To mirror the site and localize all of the URLs:

wget --convert-links -r https://www.yoursite.com

To make a full offline mirror of a site:

wget --mirror --convert-links --adjust-extension --page-requisites --no-parent https://www.yoursite.com

To mirror the site and save the files as .html:

wget --html-extension -r https://www.yoursite.com

To download all jpg images from a site:

wget -A "*.jpg" -r https://www.yoursite.com

For more filetype-specific operations, check out this useful thread on Stack.

Well, that’s all about this post. I hope you enjoyed :D

--

--