Automatically download course files from any Blackboard Learn instance. Supports any school, any term, and any file type.
- Works with any Blackboard Learn school (just enter your domain)
- Lists all your terms and lets you pick which one to download
- Pick exactly which modules to download (or use
--coursesto script it) - Preserves top-level folder structure from Blackboard
- Skips files you've already downloaded
- Supports any file type: PDF, PPTX, DOCX, etc.
- Handles both classic attachments and Blackboard Ultra embedded files
- Python 3.8+
- Google Chrome installed
git clone https://github.com/YOUR_USERNAME/blackboard-downloader.git
cd blackboard-downloader
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txtpython3 bb_downloader.pyThe script will ask for:
- Your Blackboard domain (e.g.
learn.bu.edu) - File types to download (default:
.pdf) - Which term to download
- Which modules within that term (e.g.
1,3,5or1-3orall)
python3 bb_downloader.py \
--url learn.bu.edu \
--output ~/Desktop/Blackboard \
--ext .pdf .pptx .docx| Flag | Description | Default |
|---|---|---|
--url |
Blackboard domain | prompted |
--output |
Download folder | ~/Downloads/Blackboard |
--ext |
File extensions | prompted (default .pdf) |
--courses |
Course names/IDs to download (substring match). Skips the interactive picker. | prompted |
Blackboard/
MA225 Multivariate Calculus (Spring 26)/
Lectures/
lecture01.pdf
lecture02.pdf
Syllabus/
syllabus.pdf
LJ460 Haruki Murakami and His Sources (Spring 26)/
Content/
reading01.pdf
...
- Opens a Chrome window for you to log in manually (handles SSO/2FA)
- Transfers the session cookies to a
requestssession - Uses the Blackboard REST API to enumerate your courses and content
- Parses both traditional attachments and Blackboard Ultra's
data-bbfileembedded links - Downloads matching files into a mirrored folder structure
- Re-running is safe — already downloaded files are skipped
- External links are not downloaded (e.g. files hosted on Google Drive or OneDrive)
- Tested on Blackboard Learn SaaS (Ultra experience) at Boston University (learn.bu.edu) and Trinity College Dublin (tcd.blackboard.com)
PRs welcome. If your school's Blackboard uses a different content structure and some files aren't being picked up, open an issue with the output of the debug steps in the wiki.
MIT