Git Product home page Git Product logo

dropbox-downloader's Introduction

Dropbox Downloader

Summary

Python CLI tool with two functions

  1. 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 the dbx-dl.ini file. May also specify to_dl csv list to download specific root files / folders by name.

  2. Columnar list of all files / folders in a given path.

Requirements

  • python3 and python3-venv
  • Dropbox API key

Installing in virtual environment

#!/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"

Obtaining Dropbox Api Key

See here: https://www.dropbox.com/developers/apps

Examples

# 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"

dropbox-downloader's People

Contributors

dependabot[bot] avatar digitalengineering avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

polymorpher

dropbox-downloader's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.