A simple tool for downloading course files from Canvas and syncing them to your own web drive. For now the syncing script only supports Unix-like systems and Python version higher than 3.6, and the tool has only been tested on Ubuntu 16.04 for now. The python file canvas_sync.py can be run alone, but without the feature for syncing the download contents to a web drive.
- Get a access token from your canvas site, following the tutorial here.
- (Optional) Install rlone at /usr/bin/rclone
- Install required packages from the requirements.txt using
pip install -r requirements.txt
- Copy config.template to a new file named [config.json], and fill in all necessary configurations based on your runtime system. Those optional fields can be omitted if you are just using the python script for downloading.
- Run
./gdrive_sync.sh
to start the syncing or just runpython canvas_sync.py -h
to see input arguments for running the python script by itself.