Install wget under Windows

Source: Internet
Author: User
Tags ftp parent directory split

1. Installation wget

URL: http://gnuwin32.sourceforge.net/packages/wget.htm

Download Http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-setup.exe

Double-click Install

2. System environment variable, new

Gnu_home=c:program FilesGnuWin32

3, Path add

========== Split Line ==============

;%gnu_home%bin

========== Split Line ==============

4, download the whole station:

It's really handy to download things with wget, and it will automatically connect and break the breakpoint again. It is reassuring to people.

Always download a Web site or a directory of a Web site.

Download a directory, such as downloading all content under the www.example.com/directory Mydir

The order is as follows:

Wget-r-p-k-np-nc-e Robots=off http://www.example.com/mydir/

If you want to download the entire site, it is best to remove the-NP parameters.

Wget-r-p-k-nc-e Robots=off http://www.example.com/mydir/

-R recursion; for the HTTP host, wget first downloads the file specified by the URL, and then recursively downloads all the files referenced (super connected) by the file (if the file is an HTML document) (the recursive depth is specified by parameter-L). For an FTP host, this parameter means that all files in the directory specified by the URL are to be downloaded, similar to the HTTP host.

-c Specifies the continuation of the breakpoint. In fact, the wget default has a breakpoint continuation function, only if you use another FTP tool to download a part of a file, and you want wget to do the work, you need to specify this parameter.

-nc not to download the existing files

-NP indicates that it does not trace to the parent directory, does not follow the link, only downloads the contents of the specified directory and subdirectories;

The-P download page displays all of the required files. For example, the page contains a picture, but the picture is not in the/yourdir directory, and in the/images directory, with this parameter, the picture will still be normal download.

The absolute connection in the-K repair download file is relative, so that it is convenient to read locally.

-O Down.log record diary to Down.log

-E Robots=off Ignore robots.txt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.