Giter Club home page Giter Club logo

gpup's Introduction

GPup

Command line utility for uploading media to Google Photos written in Go. Currently supports the following file types.

{".mp4", ".mov", ".m4v", ".avi", ".mkv", ".jpg", ".png", ".webp", ".gif"}

Getting Started

Visit GPhotos API authentication page and follow instructions for "Authorizing requests with OAuth 2.0". Activate the Photos LIbrary API within the Google API Console and create a new client. Save client ID and secret as environment variables.

export GPHOTOS_CLIENTID=abc123qwertyID
export GPHOTOS_CLIENTSECRET=abc123qwertySECRET

Clone repository

git clone https://github.com/kengbailey/gpup.git

Build

go build -o gpup

Run executable within folder containing images to upload

./gpup

First Run

First run of the program will present you with a link to allow access to your google photos account. Select an account and you will be presented with token string. Copy this into the command line and continue. The program will then save the token for use later. You can now save this file to a separate location and create an environment variable pointing to the location of the saved json file for use later. When the program runs next, if this environment variable is set it will automatically log you into the same account.

export GPHOTOS_TOKENJSON=/path/to/json/file.json

Status

Working! Concurrent uploads would speed things up...

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.