wget is a fantastic little command line tool for downloading files and data. It’s quite popular in the Linux environment, and also easy to use in Windows as well (but you need to install it). The magic is that with wget you can download web pages, files from the web, files over various forms of FTP, even entire websites or folder structures with just one command. It runs non-interactively (no GUI), so can be run in the background or easily automated. Here’s how to get going using it in Windows.
- Install wget for Windows
- Add the to wget bin directory to your system’s path directory (tutorial),
so you can run it easily from the command line
- Run cmd.exe to bring up a command prompt (Windows button, type cmd.exe, enter)
- By default the command prompt will open in your user directory
- Run yo wget commands (like the ones below)
- Type “start .” (w/out quotes) on command prompt to
open Windows Explorer to see your downloaded files
Here are some common command line parameters:
Save downloaded content to <file>. That O is upper-case.
When downloading over HTTPS, do not validate the remote server certificate against a 3rd party certificate authority chain.
Download each line in the file
Continue downloading if interrupted, otherwise put, resume downloading. Good for large files, if the transfer gets interrupted, resume where it was left off.
Recursive download. Get the entire tree of files starting at the url.
Example wget commads:
wget -O download.txt --no-check-certificate http://coad.cc/ZsPIXj
saves content to the file download.txt
wget -c -i download.txt
download files listed in download.txt (three little pictures in this case)
wget –r http://coad.net/noah
Download my home page’s entire site (html, css, js, etc).
Video showing how this all works:
For more great tools, see my Ultimate Tools List