Auto fetch / pull canvas files / modules
- Install dependencies:
pip install -r requirements.txt- Configure environment variables:
cp .env.example .env
# Edit .env with your Canvas API token and email settings- 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
Run the subscriber:
python main.pyTo 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- 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