Disclaimer: This script is very hacky and could be optimized in almost every regard. It got the job done for me a little while ago (I was very angry at Dropbox when I wrote it), and I thought I’d share it.
You have been warned.
You will need:
- client ID
- client secret
- access token
You need to create an app in the Dropbox Developer Center and then you will get these values. Put them in on line 18 - 20. More info here https://github.com/stacktic/dropbox
create an empty file called downloaded.txt
, in which the script will log the images it has downloaded.
You can do that by typing echo "" > downloaded.txt
into your terminal.
create an empty folder called Camera Uploads
in the same directory. The script will put the downloaded images in there (it basically mirrors the path to the images from the root of your Dropbox).
You need a working Go environment, install instructions are here https://golang.org/dl/
Then:
$ go get github.com/cheggaaa/pb
$ go get github.com/davecgh/go-spew/spew
$ go get github.com/stacktic/dropbox
$ go run download.go
It should tell you how many image paths it saved (it will download those) and then there should be a progress bar.