SuperCLine

Every Morning Tell Yourself That You Are Getting More And More Better!

golang实现wget


本文采用golang实现wget基础功能,支持文件多线程下载,支持文件多线程续传功能,同时加入了AOI机制,您可以实现自己感兴趣的AOI来爬取您所需的^_^,AOI意思就是anything of interst in web or area of interst in game.

一、源码

go get github.com/SuperCLine/gowget

[二、USAGE]

gowget version: gowget/1.0.0
Usage: gowget [-VhrH] [-v -p -nv -np] [-o=path] url

Options:
  -H    go to foreign hosts when recursive.
  -I string
        list of allowed directories.
  -V    display the version of gowget.
  -X string
        list of excluded directories.
  -h    print this help.
  -np
        don't ascend to the parent directory.
  -nv
        turn off verboseness, without being quiet.
  -o string
        save directory.
  -p    include parent when recursive. (default true)
  -r    specify recursive download.
  -v    be verbose(this is the default). (default true)