-
Download all files and folders recursively for a given path, or entire Dropbox if no path is given. Files are placed in the
dl_dir
folder specified in thedbx-dl.ini
file. May also specifyto_dl
csv list to download specific root files / folders by name. -
Columnar list of all files / folders in a given
path
.
- python3 and python3-venv
- Dropbox API key
#!/bin/bash
LOCAL_PATH="/path/to/clone/repo" # change this to your preferred location
git clone [email protected]:digitalengineering/dropbox-downloader.git "$LOCAL_PATH"
cd "$LOCAL_PATH"
python3 -m venv env
. env/bin/activate
pip install -r requirements.txt
echo "
[main]
api_key = MyDropboxApiKey
dl_dir = $LOCAL_PATH/Download
to_dl = Folder 1,Folder B,Another Folder Name,onemore.txt
" > "$LOCAL_PATH/dbx-dl.ini"
See here: https://www.dropbox.com/developers/apps
# Show help
./dbx-dl.py --help
# Download entire dropbox to folder specified in "dl_dir" in "dbx-dl.ini" file
./dbx-dl.py download-recursive
# List contents of root folder
./dbx-dl.py ls ""
# List contents of other folder
./dbx-dl.py ls "/path/to/folder"