Installing Wget commands and setting environment variables under Win7

Source: Internet
Author: User

1, installation wget
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.

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

Wget-s www.baidu.com Check return value

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/48/2E/wKioL1QF3nbgXDbsAAQ5vByNQu0753.jpg "title=" Wget20140902231128.png "alt=" Wkiol1qf3nbgxdbsaaq5vbynqu0753.jpg "/>


This article is from the "wdejiyi1210" blog, make sure to keep this source http://3635076.blog.51cto.com/3625076/1548078

Installing Wget commands and setting environment variables under Win7

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.