Giter Club home page Giter Club logo

canvas-download's Introduction

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

canvas-download's People

Contributors

vdbe avatar

Watchers

 avatar

canvas-download'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.