Skip to content
This repository was archived by the owner on May 11, 2023. It is now read-only.

vdbe/canvas-download

Repository files navigation

canvas-download

Requirements

Running

Docker

  1. Create & run the container
docker run -it -v canvas-download_data:/app/data -v ${PWD}/downloads:/app/downloads --name canvas-download ghcr.io/vdbe/canvas-download:release

You can change ${PWD}/downloads to a location of your choosing, all downloaded files will be placed here

  1. Run existing container
docker start -i canvas-download

You can leave out the -i if you don't want to attach to the containers STDIN & STDOUT/STEDERR

  • To update the local files run the container again as shown in step 2

  • If you want to see what happend after the container stopped

docker logs canvas-download
  • Remove container
docker rm canvas-download
  • Remove data volume
docker volume rm canvas-download_data

Native

  1. Setup & activate venv (optional)
python3 -m env
source env/bin/activate
  1. Install dependencies
pip3 install -r requirements-gui.txt
  1. Run it
python3 src/main.py [config file]

Configuration

This is not needed if no data/config/config.json exists it will be created when you run src/main.py for the first time. How do I obtain an access token?

Create data/config/config.json file in the root with the following content:

{
  "canvas": {
    "endpoint": "<canvas endpoint>",
    "bearer_token": "<API access token>"
  },
  "db": {
    "directory": "data/db",
    "name": "db.json"
  },
  "download": {
    "parallel_downloads": 10,
    "download_locked": false,
    "path": "./downloads"
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors