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://flinumeratr.glitch.me
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 deploy a new version of flinumeratr, log in to the Glitch app and run the following commands in the Glitch terminal:
$ git pull gh main
$ refresh
This project is dual-licensed as Apache-2.0 and MIT.