/python-dropbox

Example to download files from dropbox

Primary LanguageJupyter Notebook

Dropbox API Download

This is a simple script to download files from Dropbox using the Dropbox API.

Setup

  1. Create a Dropbox app at https://www.dropbox.com/developers/apps

  2. Generate an access token for your app: https://stackoverflow.com/a/71794390

  3. Create a .env file in the root of the project with the following contents:

    REFRESH_TOKEN = <YOUR_REFRESH_TOKEN>
    APP_KEY = <YOUR_APP_KEY>
    APP_SECRET = <YOUR_APP_SECRET>
  4. Create a folder named out in the root of the project:

    mkdir out
  5. Install requirements:

    pip install -r requirements.txt
  6. Run the notebook