项目作者: kepler471

项目描述 :
Command line batch file downloader
高级语言: Go
项目地址: git://github.com/kepler471/download.git
创建时间: 2020-08-22T18:10:17Z
项目社区:https://github.com/kepler471/download

开源协议:MIT License

下载


download

download is a command line batch file downloader written in Go.

It provides a tiny section of what wget can do, but why read that huge man page when I can write my own progaram?

Given a list of urls, download will show which files have been found, their download size, and ask for confirmation.

Usage:

download -y -t pdf www.site.com/page/with/files.html www.anothersite.com/page/with/files.html

Flags:

  • -t string. Specify file extension

    default: pdf

  • -l bool. List files only. Overrides all bool flags

    default: false

  • -y bool. Add to automatically download all files, ignoring user confirmation.

    default: false

TODO:
  • concurrent downloads
  • suggest file types found in page
  • option to specify download directory
  • option to create sub-directory for each URL
  • install script
  • want to handle URL endings, eg .html, .htm …
  • handle even when 0 urls provided with better feedback
  • provide help, default for no args
  • replace logs with errors