Downloading files made easy.
coyote is a library written in go that helps in downloading files in an elegant manner.
If you don't have go installed, you can download it here.
$ go get github.com/itsknk/coyote
After installing you can import it just like everyother library.
import (
"github.com/itsknk/coyote"
)
package main
import (
"github.com/itsknk/coyote"
)
func main() {
url := []string{
"https://images-na.ssl-images-amazon.com/images/I/81P1kr0i2RL._RI_.jpg",
"https://www.telegraph.co.uk/content/dam/film/Entourage/entouragetv-xlarge.jpg",
}
filename := []string{
"entourage_one.png",
"entourage_two.png",
}
downloader := coyote.Downloader{}
downloader.Coyote(url, filename)
}
- Fork it and then do the changes or else download the zip file, test to make sure nothing is going sideways.
- Make a pull request with a detailed explanation.