How to use Wget command on Windows? (For recursive download)

Ling David 1 Reputation point
2023-02-04T15:29:21.27+00:00

As we all know, we can use wget command to download bundles of online files from the website in Linux OS.

For example, a website is shown below. Now, we need to download all subfolders and files in the current directory - /Browser. So, if we are using a Linux PC, it's easy! we can use wget command like "

wget -r -np [URL]

" to do recursive download.

![[7D`Z9%3%U0O{9GK(S2PBG

But how can we do the same work on Windows PC? This question has bothered me for a few days. I really eager for help!

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,545 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. MotoX80 33,476 Reputation points
    2023-02-05T01:45:45.93+00:00
    0 comments No comments

  2. Limitless Technology 44,221 Reputation points
    2023-02-06T15:46:10.0133333+00:00

    Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query

    To use Wget command on Windows to download files recursively, you will need to first download and install the Wget binary for Windows. Once the download is complete, you can open a command prompt and use the following command to recursively download the files:

    wget -r <URL>

    For example, if you wanted to download the contents of a website, you would use the command:

    wget -r http://example.com

    The -r flag is used to tell Wget to download the files recursively, meaning it will download all the files on the website, including any subdirectories.

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.

    0 comments No comments

  3. Douglas Knapp 0 Reputation points
    2023-11-04T14:43:39.7333333+00:00

    Or, if you want to download all the instances of a particular type of file from a site, once it is installed. Let's say you want all the PDFs from a particular web directory.

    wget -r -A .pdf https://www.example.com

    Also, you can use the Windows Subsystem for Linux. Install it from the Apps control panel and install a distro. I have both Ubuntu an Kali right now. You can navigate to whatever directory you want your files to reside in and run the wget command there.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.