How to download huge folder from Dropbox

If you face a problem to download folder from Dropbox which contains tons of files, no known browser extension can help you. Dropbox moves each file download to it’s separate page and you can’t do it directly.

When I faced this problem I knew I would need to create my own solution and quick googling just confirmed that.

I opened javascript console and extracted all links from the folder. Then I replaced “dl=0” to “dl=1” to get actual download link.

var links = document.querySelectorAll("div.filename a")
var processed =, 
  function(link) { 
    return link["href"].replace("dl=0", "dl=1"); 

After I copied those to file links_to_download. If your processed array is too big, you can print it to console by chunks, using slice(start, end) method from Javascript. Now the problem is to download them.

I came up with wget for such problem. Linux and OS X users should have wget available (OS X users can install it via e.g. homebrew). Windows users have to download it separately, install and add to the PATH environmental variable. Additionaly I used –trust-server-names and –content-disposition parameters to save real filenames instead of dropbox hashed url. Then I faced a problem that it fails to download a file on first request and request timeout is quite big so I’ve set it to 5 seconds. Now it makes several timed-out requests, but they quickly resolve to the successful one.

wget --content-disposition --trust-server-names 
  --timeout=5 -i links_to_download

Also in order to download via https in Windows you probably will need to use “–no-check-certificate“.