The ability to download the entire file in a website folder is really useful because you don’t need to download each file one by one. In addition, when the list on the file is long, the level of difficulty increases and you have a high chance of making mistakes, missing file, download the same file several times.
This post provides the information you need to download the entire file in a website folder.
You can use a plug-in, program, or commands that are available in the Windows command prompt or a Linux terminal to get the job done.
How to download the entire file in a website folder with wget
You can use the wget utility in the Windows 10 command prompt to download folders, subfolders and files on a website. The Wget utility supports multiple protocols such as HTTP, HTTPS, FTP and FTPS.
Go to the Windows 10 search bar, type cmd, and then click Command Prompt. Or
Simultaneously press Windows key and R key to open run, type cmd, and then press Enter.
By default, wget download the files to the current directory, if not you want, enter the folder where you want to download the files.
In the Command Prompt window, type the command below and then press Enter.
wget -rcN https://www.bible.audio
-r to tell wget that you want recursive download
-c to tell wget that you want resume a partially downloaded file
-N to tell wget that you don’t want re-retrieve files unless newer than local
If you don’t want to download ascend to the parent directory, use the command below and hit enter.
wget -rcN -np https://www.gotquestions.org
-np to tell wget that you don’t want ascend to the parent directory
Some website gives you different content depending your web browser and your operating system. In addition, some websites may detect you as a bot and block your IP address. To prevent or make this type of detection difficult, you can use your preferred user agent to make the web server feel like you are a web browser like Google Chrome, Safari, Mozilla Firefox, etc. If you want to use Google Chrome version 70.0.3538.77 as a user agent, type the command below and press Enter.
wget -rcNnp -U "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)" http://htopskills.com/media/
To use Mozilla Firefox version 77.0 as a user agent, type the command below and press Enter.
wget -rcNnp --user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:77.0) Gecko/20190101 Firefox/77.0" http://htopskills.com/media/
Note: If you want to see more things you can do with the wget utility, type the command below and hit Enter.
Video to show you how to download the whole file to a website folder
What To Read Next
- How to find the MAC address of a device
- How To Find Website IP Address Using Windows PowerShell
- Access your computer from anywhere with VNC
- How to map a network drive in Windows 10
- How to access web server on VirtualBox from host