能指定文件目录的下载器

能指定文件目录的下载器

Go 其它杂项

详细介绍

glash

能指定文件目录的下载器

Install

git clone https://github.com/micln/glash.git
cd glash
go build

##Usage

$ ./glash

Usage of ./glash:
  -d	start http server.
	listen on http://0.0.0.0:10087?url=xx&filename=xx
  -f string
    	source file, read urls from here
  -json
    	parse the file as json
  -t	parse the file like 'url(\t)filename'
  -tool string
    	choose the download tools. support [curl, aria2]

Example

# use httpd daemon
./glash -d

# use json file
./glash -f ~/test.json -json

# use aria2c
./glash -f ~/test.json -json -tool aria2