https://github.com/gedex/imgdownloader
Command line app to download images.
https://github.com/gedex/imgdownloader
Last synced: over 1 year ago
JSON representation
Command line app to download images.
- Host: GitHub
- URL: https://github.com/gedex/imgdownloader
- Owner: gedex
- Created: 2013-08-11T08:08:28.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-11-28T16:42:38.000Z (over 11 years ago)
- Last Synced: 2025-03-21T13:12:44.158Z (over 1 year ago)
- Language: Go
- Size: 213 KB
- Stars: 12
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
imgdownloader
=============
Need hundred of images for your project?
## Install
~~~text
$ go get github.com/gedex/imgdownloader
~~~
## Usage
* Download 1000 images, tagged with `cat`, from Flickr:
~~~text
$ imgdownloader -tag="cat" -n=1000 -from="flickr" -out="./cats"
~~~
* From Instagram:
~~~text
$ imgdownloader -tag="cat" -n=1000 -from="instagram" -out="./cats"
~~~
* From Google Picasa Web:
~~~text
$ imgdownloader -tag="cat" -n=1000 -from="picasa" -out="./cats"
~~~
There's a [showterm of the usage](http://showterm.io/e7a51dad5d048e93d64b6#fast) if
want to see imgdownloader in action.
Currently, there are three providers: `flickr`, `instagram`, and `picasa`. 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:
~~~json
{
"flickr": {
"api_key": "YOUR_FLICKR_API_KEY"
},
"instagram": {
"access_token": "YOUR_ACCESS_TOKEN"
},
"picasa": {
"": ""
}
}
~~~
To get Instagram's `access_token` you can use [ginsta](https://github.com/gedex/ginsta):
~~~text
$ go get github.com/gedex/ginsta
$ ginsta token_get # Open localhost:8080 In your browser
~~~
Currently you need to specify `picasa` config as a placeholder so that the config reader
doesn't returns an error.