Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 913 Bytes

File metadata and controls

42 lines (33 loc) · 913 Bytes

canvas-subscriber

Auto fetch / pull canvas files / modules

Setup

  1. Install dependencies:
pip install -r requirements.txt
  1. Configure environment variables:
cp .env.example .env
# Edit .env with your Canvas API token and email settings
  1. Get your Canvas API token:
    • Log into Canvas
    • Go to Account → Settings
    • Scroll to "Approved Integrations"
    • Click "+ New Access Token"
    • Copy the generated token to .env

Usage

Run the subscriber:

python main.py

To run automatically, set up a cron job (Linux/Mac) or Task Scheduler (Windows):

# Run every hour
0 * * * * cd /path/to/canvas-subscriber && python main.py

Features

  • Choose which courses to track from enrolled Canvas courses
  • Downloads new files from newly published modules
  • Email notifications for new module publications
  • Tracks downloaded files to avoid duplicates