Skip to content

AucklandMuseum/flickrUploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Upload images to a Flickr account

This script reads JPEG files in a directory and uploads them to Flickr.

  • JPEGs are expected to have a Vernon ID before the underscore, i.e. 70152_001.jpg
  • Uses the Auckland Museum API to get record data, using the ID from the filename.
  • Logs to flickrUpload.log

Libraries

This project uses sybrenstuvel's flickrapi Python interface to the Flickr API.

Setup

Install pip dependencies:

pip install -r requirements.txt

Obtain credentials

Set up a Flickr App, and copy the key and secret into a .env file. The script will look here to obtain the credentials.

Your .env file should look like this, with <key> and <secret> replaced by the actual values:

FLICKR_KEY = "<key>"
FLICKR_SECRET = "<secret>"

Your access token will be stored in the local folder .flickr. Be sure you don't upload this folder or your .env file to a public repository.

Run the script

python flickrUpload.py

About

Upload image files to a Flickr account

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages