Small utilities for working with course materials from Canvas:
- Download files linked from a Canvas course page.
- Batch-convert PowerPoint files to PDF on macOS.
The project is intentionally minimal and macOS-centric.
-
main.pyDownloads files referenced as Canvasinstructure_file_linkelements. Requires a valid Canvas session cookie (canvas_session). -
convert.shBatch converts*.pptxfiles to PDF usingosascriptand AppleScript. -
convert.scptAppleScript for exporting PDFs from Microsoft PowerPoint. -
convert_keynote.scptAppleScript for exporting PDFs from Keynote.
uv sync- A valid
canvas_sessioncookie value, obtained from browser dev tools
-
Open
main.py. -
Set the session token directly in the file:
token = "<canvas_session_cookie_value>"- Run:
uv run main.pyDownloaded files are saved to the working directory.
Run:
./convert.shThis creates a Converted_PDFs directory and converts all *.pptx files using Microsoft PowerPoint.
To use Keynote instead, edit convert.sh and replace convert.scpt with convert_keynote.scpt.
MIT