perkeep/pkg/importer/flickr
Brad Fitzpatrick eb27581da7 httputil: add DecodeJSON and CloseBody helpers, then use them everywhere
httputil.CloseBody closes a http.Response.Body nicely, such that it's
more likely to be re-used.

httputil.DecodeJSON parses JSON from a Response.Body and closes the
body. It also keeps a temporary copy of the input, for error messages.

Then use them everywhere, to improve HTTP TCP connection re-use.

And misc other clean-ups.

Change-Id: I5dc44be0165b13659459ed29ce5ab44c17d9739f
2014-01-28 22:00:52 -08:00
..
README
auth.go
flickr.go httputil: add DecodeJSON and CloseBody helpers, then use them everywhere 2014-01-28 22:00:52 -08:00

README

Flickr Importer
===============

This is an incomplete Camlistore importer for Flickr.com. So far it can import
the first 100 photos from a photostream and also their set metadata.

To use:

1) Fill out http://www.flickr.com/services/apps/create/noncommercial/ to get a
   Flickr API key and secret.
2) Start the devcam server with flickrapikey flag:
   $ devcam server -flickrapikey=<apikey>:<secret>
3) Navigate to http://<server>/importer-flickr/login
4) Watch import progress on the command line


TODO:

https://code.google.com/p/camlistore/issues/list?q=feature%3Aimportflickr