title: Use curl to download a Dropbox folder via shared link (not public link)
body: <p>Dropbox makes it easy to programmatically download a single file via curl (EX: <code>curl -O https://dl.dropboxusercontent.com/s/file.ext</code>). It is a little bit trickier for a folder (regular directory folder, not zipped). The shared link for a folder, as opposed to a file, does not link directly to the zipped folder (Dropbox automatically zips the folder before it is downloaded). It would appear that you could just add <code>?dl=1</code> to the end of the link, as this will directly start the download in a browser. This, however, points to an intermediary html document that redirects to the actual zip folder and does not seem to work with curl. Is there anyway to use curl to download a folder via a shared link? I realize that the best solution would be to use the Dropbox api, but for this project it is important to keep it as simple as possible. Additionally, the solution must be incorporated into a bash shell script.</p>