Skip to content

diazuwi/imgdownloader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

imgdownloader

Need hundred of images for your project?

Install

$ go get github.com/gedex/imgdownloader

Usage

  • Download 1000 images, tagged with cat, from Flickr:

    $ imgdownloader -tag="cat" -n=1000 -from="flickr" -o="./cats"
    
  • From Instagram:

    $ imgdownloader -tag="cat" -n=1000 -from="instagram" -o="./cats"
    

Currently, there are two providers: flickr and instagram. You specify provider via -from parameter. Since getting list of images from providers involves calling provider's REST API, you need to provide client credentials for imgdownloader in imgdownloader.json either in current directory or your $HOME directory with following format:

{
	"flickr": {
		"api_key": "YOUR_FLICKR_API_KEY"
	},
	"instagram": {
		"access_token": "YOUR_ACCESS_TOKEN"
	}
}

To get Instagram's access_token you can use ginsta:

$ go get github.com/gedex/ginsta
$ ginsta token_get # Open localhost:8080 In your browser

About

Command line app to download images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published