Skip to main content

Download Blackboard course exports from Curtin University's LMS

Project description

course-dl

Download Blackboard course exports from Curtin University's LMS.

Installation

uv tool install course-dl
playwright install chromium

Or install from source:

git clone https://github.com/michael-borck/course-dl.git
cd course-dl
uv sync
uv run playwright install chromium

Usage

Basic usage

# Search by unit code (fuzzy matched against course titles)
course-dl COMP1000 ISAD1000

# Search by partial name
course-dl "Data Structures" "Linear Algebra"

# Mix codes and names
course-dl COMP1000 "Application Development"

# Interactive picker — no args, just select from a list
course-dl

# Export all available courses
course-dl --all

Options

course-dl [SEARCH...] [OPTIONS]

Positional:
  SEARCH                Search terms to fuzzy-match against course titles.
                        If omitted, an interactive picker is shown.

Options:
  -f, --file PATH       File with search terms (one per line or comma-separated)
  -u, --username STR    Curtin username
  -p, --password STR    Curtin password
  -o, --output-dir PATH Output directory (default: ./exports/)
  --all                 Download all courses visible in Blackboard
  --overwrite           Re-download courses that already exist locally
  --match-threshold INT Fuzzy match score 0-100 (default: 60)
  --visible             Show the browser window (default: headless)
  --timeout INT         Navigation timeout in ms (default: 60000)

Fuzzy matching

Course titles in Blackboard are often long and include extra metadata (e.g. COMP1000 - Unix and C Programming - S1 2026 - Bentley (AUTO_CREATED_123)). You don't need the full title — just provide enough to uniquely identify it:

course-dl COMP1000              # matches by unit code anywhere in title
course-dl "Unix and C"          # matches by partial name
course-dl "Data Structures"     # matches by topic

Adjust --match-threshold (default 60) if matches are too loose or too strict.

Interactive picker

When no search terms are provided, an interactive checkbox list is shown after login. Use arrow keys to move, space to toggle selection, and enter to confirm.

Skip / overwrite behaviour

By default, course-dl skips courses that already have a .zip file in the output directory matching the course name. Use --overwrite to force re-download.

Credentials

Credentials are resolved in order:

  1. CLI flags (-u, -p)
  2. Environment variables (CDL_USERNAME, CDL_PASSWORD)
  3. .env file (searched in order):
    • ~/.config/course-dl/.env
    • ~/.course-dl.env
    • ./.env
  4. Interactive prompt

Copy .env.example to one of the above locations:

cp .env.example ~/.config/course-dl/.env

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

course_dl-0.2.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

course_dl-0.2.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file course_dl-0.2.0.tar.gz.

File metadata

  • Download URL: course_dl-0.2.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for course_dl-0.2.0.tar.gz
Algorithm Hash digest
SHA256 682b2fb7cc9ef09121e166d00ced807f9c5b270816df499049e638ef82a056f1
MD5 d9807fd920aa223a2753d2b0ef28907b
BLAKE2b-256 87d7160f9a40dde2b6c66c35a2652cda6aab2797806ed5b65a532996f3251b80

See more details on using hashes here.

File details

Details for the file course_dl-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: course_dl-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for course_dl-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9566d40f6836c1f1dbadc5af60cb9c7a54ace9716da5d0769a432728e0e3037
MD5 e61eee7b77375c364ff6fe35ed7257fe
BLAKE2b-256 1ca161727a9fcf9139a2c3f78fc5fc75d5b3421e7fae727bf6853cbb7749a6fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page