# Dropbox Camera Upload image downloader **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.** ## Setup ### Dropbox Keys 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 ### log file 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. ### Folder structure for the images to be downloaded 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). ## running the script 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.