perkeep/third_party/github.com/tgulacsi/picago
Aaron Boodman 290413a692 My import of picasa was failing because the number of photos
returned by the API was different (by one) than the number of
photos claimed in the top-level NumPhotos attribute.

Instead of relying in the NumPhotos attribute, just keep
requesting until we get a response with nothing in it.

This is also more robust against the (admitted edge-case of
the album contents changing while the importer is running.

Change-Id: Id928a6526e2805aa64e2e59828e2575235bcf9b9
2014-08-19 22:58:01 -07:00
..
testdata picasa: clean up album attributes, add tests, fix keywords with spaces 2014-07-30 15:50:34 -07:00
README.md Rewrite Picasa importer for the new Importer API 2014-05-21 22:37:50 +02:00
atom.go picasa, picago: support video, change struct definitions, add start of more tests 2014-07-29 11:44:44 -07:00
atom_test.go picasa: set url property on photos and albums 2014-07-31 14:34:52 -07:00
auth.go Picasa: add importer. 2014-03-17 10:52:51 +01:00
doc.go Picasa: add importer. 2014-03-17 10:52:51 +01:00
get.go My import of picasa was failing because the number of photos 2014-08-19 22:58:01 -07:00

README.md

picago

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

Install

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

After getting a client ID and secret from , 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.