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