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:
$ flask --app flinumeratr.app run --debugIf 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 reportTo start the app in prod, run the start_prod.sh script on Sontag:
$ bash start_prod.shTo restart the app with new code, run the restart script on Sontag or in your local checkout:
$ bash scripts/restart_prod.shThis project is dual-licensed as Apache-2.0 and MIT.
