wget for windows

来源:互联网 发布:不定积分 软件 编辑:程序博客网 时间:2024/04/28 03:32
      wget是linux命令行的下载工具,比起迅雷旋风等下载软件,wget支持HTTP,HTTPS,FTP,HTTP代理,递归下载……甚至能下载整个网站。正因为它很强大,所以有大神把它移植到windows上了,可以在这里下载http://users.ugent.be/~bpuype/wget。网站上最后的是1.11.4,wget官网最新的是1.15。所以这个版本确实老了。

        官网上有这一句话:Latest official version of wget is currently wget 1.12, however this version does not currently compile for Windows. I am looking into this, but a Windows version of wget 1.12 may still take some time. The suggested mingw32 compile path is not a viable option to me right now, mainly because of the lack of IPv6 and 64-bit support.

        我自己试过多次,1.15用wingw无法编译成功,无奈之下只有用cygwin编译了。cygwin的兼容性比mingw好多了,但是带了一大堆dll。算了,反正把这些东西全扔到C:\Windows\system32下就行。这样启动dos窗口就能执行wget了。

        常用wget命令:

        wget -c "地址"
        加上-c参数,可以断点传继

        wget -O "文件名" -c "url"
        加上-O参数,可以指定下载的文件名。

        wget -c -i "file"
        使用-i参数,读取文本文件中的下载地址,多个下载地址用换行符代替

        wget -c -r "url"
        参数-r是递归下载,使用该条命令可以下载整个网站

        还有很用法,比如导入cookies,指定下载层级等,执行 wget --help 可以看到各参数的说明及用法。


        下载地址:
        http://url.cn/ItuVyG (32位,推荐)
        http://url.cn/QOMYIk (64位)
0 0