flickr-tasks

Flickr Tasks

A collection of python scripts to automate some tasks on Flickr™. At the moment, the following are available:

add_description/

add_gear_tags/

auto_add2groups/

auto_post2blogs/

auto_tasks/

best_lens/

check_exif/

del_img_comments/

empty_photoset/

find_explored/

generate_kml/

group_admin/

lens_usage/

lenses_wide_open/

more_stats/

Installation

The scripts were developed to run on Linux systems and need Python 3.x to run.

To start, open a terminal and execute the following commands:

git clone https://github.com/HaraldoFilho/FlickrTasks.git
cd FlickrTasks

The script uses Flickr API. To get and use this API follow the instructions below.

Flickr API key

First, install the flickrapi package by typing in a terminal:

% pip3 install flickrapi

Now, get a Flickr’s API key by visiting the Flickr API key request page.

After that, create a file api_credentials.py with the following code and with the obtained values:

api_key = u'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
api_secret = u'xxxxxxxxxxxxxxx'
user_id = 'XXXXXXXXXXXX'

Then, authenticate on Flickr by running:

% ./authenticate.py

A web browser will be opened to get the user approval (in a non-graphical environment, just copy and paste the authorization url in any external web browser). After approve, type in the terminal the generated code.

Usage

IMPORTANT WARNING! Please, read before use these scripts:

To use these scripts it is necessary a basic knowledge of computer programming in Python. They were written for my specific needs of automating tasks on my Flickr account and I don’t know if they will be useful for anyone else. But, if you want to use them, when using the group_admin scripts, always review carefully the results of the generated remove-photos.py and only after that run it. If you don’t do this, there is a chance of removing “good” files (or even end up with an empty group pool!), in case there is any changes in the way Flickr returns the EXIF data or an error in your procedures implementation. Please, use these scripts with care and at your own risk.