Coder Social home page Coder Social logo

antoinerousseau / flickr2google Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 354 KB

Migrate your Flickr photo sets to Google albums

JavaScript 98.77% Shell 1.23%
flickr flickr-sets google-albums google-apis google-photos google-photos-api flickr-sdk flickr-api googleapis googleapi

flickr2google's Introduction

flickr2google

This script is designed to migrate all your Flickr sets to Google albums. It handles resuming if the script is stopped or exits, by storing processed photos in albums/[photoset_id].json.

Requirements

You need Node.js

Setup

Clone this repository, cd into it, and install its dependencies by typing npm i.

Then create a .env file based on example.env (cp {example,}.env), and edit it:

  • To set the FLICKR_APP_* values, create a Flickr app as a Mobile Application with Read permissions
  • To set the GOOGLE_CLIENT_* values, enable the Google Photos API and allow https://antoinerousseau.github.io/flickr2google/ as a callback URL in your API credentials

Run

./start.js

Daemonize

You can use PM2

pm2 start start.js --name flickr2google

Limitations

  • This script does not handle videos (yet)
  • If your Google storage is limited and you hit the limit, the Google API will return a "Bad Request". You must then either buy more storage, or go to your Google Photos settings, choose "High Quality" and click "Recover storage". This will convert your uploads to 16 Megapixels compressed photos, which the API cannot do on the fly. Also, you can only convert once per day.

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.