A set of tools for interacting with the Flickr photo sharing service.
flickr-random-fav
accepts a Flickr user name and downloads a random image from the favorites chosen by that user.
Usage:
-dir
string Directory of the downloaded image (default ".")-env
string Name of an environment file that contains the FLICKR_API_KEY value. If omitted and no "key" argument specified, uses "./.env" for enviroment file.-key
string Flickr API Key. May be specified in an evironment file (see 'env' option)-minsize
int Minimum acceptable long edge size if desired size is not available (default 2000)-size
int Desired size of the long edge of the image. Resultant image may be larger if size does not exist. (default 2048)-user
string Name of user for which to load favorites-v
Verbose
flickr-download-all-favs
accepts a Flickr user name and downloads all images from the favorites chosen by that user.
Usage:
-dir
string Directory of the downloaded image (default ".")-env
string Name of an environment file that contains theFLICKR_API_KEY
value. If omitted and no "key" argument specified, uses "./.env" for enviroment file.-fail
Fails if min desired size not available. Default is false-key
string Flickr API Key. May be specified in an evironment file (see 'env' option)-minsize
int Minimum acceptable long edge size if desired size is not available (default 2000)-size
int Desired size of the long edge of the image. Resultant image may be larger if size does not exist. (default 2048)-user
string Name of user for which to load favorites-v
Verbose
In order to access the Flickr API, you must obtain a Flickr API Key. This key has to be know by all of the tools in this package.
Setting the API key can be done in a number of ways and is checked in this order:
- Specifying with the
-key
command line parameter. - Specifying a file with the
-env
command line parameter. This file should contain the key specification in the formFLICKR_API_KEY=XXXXXXX
. - A file in the current directory named
.env
that contains the key as above. - An existing environment variable that contains the key as above. Note that this overrides any env file specified above.