1, install wget www.2cto.com
Website: 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 variables, new
Gnu_home=c:\program Files\gnuwin32
3. Path add
========== Split Line ==============
;%gnu_home%\bin
========== Split Line ==============
4, download the whole station:
Download things with wget, it is very convenient, it will automatically re-connect and the breakpoint continues to pass. People are very relieved.
You often download a site or a directory for a website.
Www.2cto.com
Download a directory, such as download all content under www.example.com/directory Mydir
The command 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 parameter.
Wget-r-p-k-nc-e Robots=off http://www.example.com/mydir/
-R recursion; For an HTTP host, wget first downloads the file specified by the URL, and then (if the file is an HTML document) recursively downloads all the files referenced by the file (the Hyper-link) (The recursive depth is specified by the parameter-L). For an FTP host, this parameter means that all files in the directory specified by the URL are downloaded, and the recursive method is similar to the HTTP host.
-c Specifies the breakpoint continuation function. In fact, Wget has a breakpoint continuation function by default, and you only need to specify this parameter when you download a portion of a file using another FTP tool and you want wget to do the work.
-NC does not download files that already exist
-NP means that it does not go back to the parent directory, does not follow the link, only downloads the contents of the specified directory and sub-directory;
The-P download page displays all the required files. For example, the page contains the picture, but the picture is not in the/yourdir directory, and in the/images directory, there is this parameter, the picture will still be downloaded normally.
-K Repair the absolute connection in the download file is relative to the connection so that it is easy to read locally.
-O Down.log record diary to Down.log
-E Robots=off Ignore robots.txt
Problem solving: If you encounter a process during use:
The unable to establish SSL connection error issue occurs with curl and wget access HTTPS connections
Can be resolved as follows
Wget using the –no-check-certificate parameter
Curl uses the-K or--insecure parameter
Windows WGET Installation