Skip to content

ProgramYazar/go-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO DOWNLOADER


### DESCRIPTION

Multi thread downloader on go language. You can install this package like this:

$ go get -u github.com/ProgramYazar/go-downloader

If you haven't installed Go Language on your computer, you can use compiled binaries under dist/ folder.

USAGE

go-downloader -file links_file.txt -j cpu_count -w worker_count_per_cpu
  • j: Active cpu count
  • w: Active worker count per cpu

File format must be like this

filename-1
link-1
filename-2
link-2
...

empty lines aren't important...

EXAMPLE

Download videos from youtube as parallel...

wget https://github.com/raw/ProgramYazar/go-downloader/master/create_links.sh
chmod +x create_links.sh
./create_links.sh http://youtube-link....
go-downloader -file playlist.txt -j 4 -w 2

Note: create_links.sh use youtube-dl project.