Script for downloading photos from Flickr by tag
- Prepare your PostgreSQL DB where we will store images. For example:
create database flickr;
create user flickr with password 'flickr';
grant all privileges on database flickr to flickr;
- Get your own Flickr API key at https://www.flickr.com/services/apps/create/
- Fill your config.ini with your settings (at least with DB credentials and Flickr API key)
- Install project requirements with running
pip install -r requirements.txt
It's desirable to use virtual environment. - Run
python setup.py config.ini
to create table for storing photos and additional information.
For example: python get_images.py Novosibirsk --config config.ini
More info: python get_images.py --help