Code Monkey home page Code Monkey logo

flikbak's Introduction

Welcome to FlikBak!

FlikBak is a commandline utility that downloads your Flickr photos to your computer.

o Requirements
o Usage
o Photos in sets
o Photos not in sets

Requirements
============
FlikBak only requires a normal install of Ruby 2. No extra gems are required.

To use FlikBak you will need a Flickr API key and secret. The first time you run FlikBack it will open the default browser for you to grant it permission to access your Flickr account. Flickr will display a code in the browser. Copy/paste this code into the terminal where requested. You only need to do this once as the OAuth tokens are stored in TOKENS_DIR. If you delete the tokens, FlikBak will recreate them using the browser.

Usage
=====
ruby flikbak.rb APIKEY SECRET TOKENS_DIR PHOTOS_DIR MODE OVERWRITE

APIKEY = your Flickr api key.
SECRET = your Flickr api secret.
TOKENS_DIR = full path of directory to store oauth tokens. If this gets deleted or emptied, flickbak will rebuild the oauth tokens using the browser.
PHOTOS_DIR = full path of directory to store downloaded photos and metadata.
MODE = One of: sets notinset collections
OVERWRITE = one of: overwrite keep

e.g. to download all your collections:
ruby flikbak.rb YOUR_APIKEY YOUR_SECRET /Users/you/flickr/tokens /Users/you/flickr/photos collections overwrite

If you have to cancel FlikBak during a lengthy download, use keep as the OVERWRITE parameter next time to skip over those you've already downloaded. If you need to redownload photos, set it to overwrite.

User info
=========
The following files are created:
PHOTOS_DIR/user/contacts.json
PHOTOS_DIR/user/groups.json

Photos in sets
==============
Photos in sets are downloaded to:
PHOTOS_DIR/sets/PhotosetTitle-PhotosetId/PhotosetTitle.json
PHOTOS_DIR/sets/PhotosetTitle-PhotosetId/PhotoTitle-PhotoId/PhotoTitle-PhotoId.original_file_extension
PHOTOS_DIR/sets/PhotosetTitle-PhotosetId/PhotoTitle-PhotoId/PhotoTitle-PhotoId.json

Photos not in sets
==================
Photos not in sets are downloaded to:
PHOTOS_DIR/not_in_set/PhotoTitle-PhotoId/PhotoTitle-PhotoId.original_file_extension
PHOTOS_DIR/not_in_set/PhotoTitle-PhotoId/PhotoTitle-PhotoId.json

Collections
==================
Collections are downloaded to:
PHOTOS_DIR/collections/CollectionTitle-CollectionId/PhotosetTitle/PhotosetTitle.json
PHOTOS_DIR/collections/CollectionTitle-CollectionId/PhotosetTitle/PhotoTitle-PhotoId/PhotoTitle-PhotoId.original_file_extension
PHOTOS_DIR/collections/CollectionTitle-CollectionId/PhotosetTitle/PhotoTitle-PhotoId/PhotoTitle-PhotoId.json

flikbak's People

Contributors

codebrane avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.