Skip to content

lmBored/LectureNotesUtils

Repository files navigation

LectureNotesUtils

Overview

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.

Files

  • main.py Downloads files referenced as Canvas instructure_file_link elements. Requires a valid Canvas session cookie (canvas_session).

  • convert.sh Batch converts *.pptx files to PDF using osascript and AppleScript.

  • convert.scpt AppleScript for exporting PDFs from Microsoft PowerPoint.

  • convert_keynote.scpt AppleScript for exporting PDFs from Keynote.

Requirements

Install dependencies

uv sync

Canvas

  • A valid canvas_session cookie value, obtained from browser dev tools

Usage

Downloading files from Canvas

  1. Open main.py.

  2. Set the session token directly in the file:

token = "<canvas_session_cookie_value>"
  1. Run:
uv run main.py

Downloaded files are saved to the working directory.

Converting PPTX to PDF

Run:

./convert.sh

This 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.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published