This is a toy to help you pull photos out of Flickr. You enter a Flickr URL, and it shows you a list of photos that can be viewed at that URL. This includes:
- A single photo, such as /photos/schlesinger_library/13270291833
- An album, like /photos/aljazeeraenglish/albums/72157626164453131
- A member's photo stream, for example /people/blueminds/
You can use flinumeratr by visiting https://www.flickr.org/tools/flinumeratr/
You can set up a local development environment by cloning the repo and installing dependencies:
$ git clone https://github.com/Flickr-Foundation/flinumeratr.git
$ cd flinumeratr
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install -e .
You need a Flickr API key. Then you can run the app by running the Flask app with your API key passed as an environment variable:
$ FLICKR_API_KEY=<KEY> flask --app flinumeratr.app run --debug
If you want to run tests, install the dev dependencies and run py.test:
$ source .venv/bin/activate
$ pip install -r dev_requirements.txt
$ coverage run -m pytest tests
$ coverage report
To start the server in prod:
$ bash start_prod.sh
To restart the server (e.g. if you've changed the code):
$ kill -HUP $(cat flinumeratr.pid)
This project is dual-licensed as Apache-2.0 and MIT.