Coder Social home page Coder Social logo

picago's Introduction

WARNING

As Google deprecated the Picasa API, and it won't work from 15 March 2019, I sunset this project.

ATM Google Drive is the only way I know to retrieve your photos. See Perkeep for an importer!

picago

Picago is a small Go library for downloading and uploading photos from Picasa Web.

Install

go install github.com/tgulacsi/picago/pica-dl

Permissions

You must obtain a client ID and secret from Google in order to call the APIs this project relies on.

  1. Go to https://console.developers.google.com/project and create a new project. You can name it whatever you want. You can also reuse an existing project if you have one.

  2. Click on the project, and under "APIs & auth" > "Consent screen", ensure you have "Product name" and "Email address" specified.

  3. Under "APIs and auth" > "Credentials" click "Create new client ID". Choose type "Installed application", then installed application type "Other".

Running

After getting a client ID and secret, you can run the example app as

pica-dl -id=11849328232-4q13l4hgr5mdt35lbe49l8banqg5e1mk.apps.googleusercontent.com -secret=Y0xf_rauB9MVTNYAI2MYIz2w -dir=/tmp/pica

This will download all photos from all albums under /tmp/pica. Each album and photo is accompanied with a .json file containing some metadata.

picago's People

Contributors

aboodman avatar dldx avatar tgulacsi avatar twsiyuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

picago's Issues

Picasa API Deprecation

From the Picasa document, the API has been deprecated and is no longer available.

It's time to make a small change to makes this library still works until 15 March 2019, and sunset this project after that day.

picasa real time data

Hi,

how can you get location based real time data from picasa? I havnt found anything on google...

Thanks,
Gerald

Problem importing an image with gps coordinates of "0.0 0.0"

Hi,

When I try to import a particular image from my google photos which has "0.0 0.0" set as its coordinates, picago thinks this is incorrect and just bails. I'm new to Go programming so I'm not sure what the correct solution is but I changed get.go:243 to
if e.Point != "" && e.Point != "0.0 0.0" && lat == 0 && long == 0 {

This lets the download process continue without throwing an error and assumes that the coordinates are unset, just like it would be the case if e.Point = "".

Do you think this is acceptable? If not, how would I prevent picago from ignoring photos with weird coordinates like this?

Cheers,
Durand

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.