Skip to content

unsubd/goget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoGet

Download stuff over HTTP with ease.

The idea is to have one command line tool to help me download an entire index of files, if need be.

Usage:

$ go build goget

$ ./goget -m=100 -url=https://stuff.mit.edu/afs/sipb/contrib/pi/pi-billion.txt

Command Line options:

  1. -m: Amount of Memory to be allocated for download. This is the memory that is split and allocated for the Download of files and isn't related to the total memory consumption by Go.
  2. -url : The url of a file (or an index that serves up an HTML with a list of file URLs) to be downloaded
  3. -resume : Resume a download if possible. -resume=true
  4. -r : Recursion Depth to be used in case of downloading an Index. If the depth = 2, the current list of files and files one level down will be downloaded.
  5. -o : Output Directory. If the directory does not exist, it will be created.

Once the download is complete, the tool computes checksums, bytes downloaded and stores them in a file named meta in your output directory.

Demo (downloading a deep index)

Use File Server to serve a directory.

Note, if you are serving a directory on another machine, make sure that you are on the same network and the IP address is correct and the Port is accessible.

About

Downloader written in golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages