Windows GUI to download enrolled Coursera courses — videos, subtitles, and resources offline.
Videos, subtitles, quizzes, notebooks and resources, organised week by week just like on the site.
A privacy-first Windows desktop app — no telemetry, no cloud uploads.
flowchart LR
subgraph auth["Browser session"]
CK["rookiepy cookie import"]
end
subgraph api["Coursera API"]
EC["Enrolled courses"]
SY["Syllabus parse"]
end
subgraph worker["Download worker"]
QP["QProcess subprocess"]
EN["engine.py"]
PO["Download pool"]
end
subgraph files["Local files"]
VD["Videos"]
ST["Subtitles"]
RS["Quizzes · notebooks · resources"]
end
CK --> EC
EC --> SY
SY --> QP
QP --> EN
EN --> PO
PO --> VD & ST & RS
- Import session — CourseraGrab reads your browser login cookies via
rookiepy(no password storage). - List courses — the GUI fetches enrolled courses and builds a week-by-week syllabus tree.
- Download in worker — a
QProcesssubprocess runsengine.pyso you can stop/resume without freezing the UI. - Save locally — videos, subtitles, quizzes, notebooks, and reading resources land in your chosen folder.
- One-Click Offline Downloading: Browse your enrolled Coursera courses and start downloading entire weeks with a single click.
- Complete Course Materials: Automatically grabs high-quality videos, localized subtitles, quizzes, Jupyter notebooks, and reading resources.
- Live GUI Progress Tracking: Clean PyQt5 interface featuring a live progress bar, real-time stop button, and download history.
- Customizable UI: Switch between list and grid views, and toggle between dark and light themes.
- Smart Resuming: Pause and resume downloads without losing progress, with quick access to your downloaded folders.
- Quality Control: Pick your preferred video resolution and select specific subtitle languages before downloading.
| Area | Implementation |
|---|---|
| UI | PyQt5 desktop app with dark/light themes, list/grid course browser |
| Auth | Browser cookie extraction via rookiepy (no password storage) |
| Downloads | Multithreaded pool + isolated worker subprocess for clean stop/resume |
| Persistence | Local SQLite history, settings, and download state |
| Packaging | PyInstaller single-file .exe for Windows distribution |
Stack: Python 3.12 · PyQt5 · requests · BeautifulSoup · rookiepy · PyInstaller
The download engine is adapted from the open-source coursera-dl project.
flowchart LR
subgraph gui["PyQt5 · maingui.py"]
MW["MainWindow"]
UI["Course browser + progress"]
end
subgraph proc["Worker process"]
QP["QProcess (--coursera-worker)"]
EN["engine.py"]
CB["course_builder.py"]
FD["file_downloader.py"]
end
subgraph net["Networking"]
AU["auth.py"]
OD["ondemand_api.py"]
CA["courses_api.py"]
end
subgraph data["Local persistence"]
DB[(SQLite · localdb.py)]
end
MW --> AU
AU --> CA
CA --> OD
MW --> QP
QP --> EN
EN --> CB & FD
MW --> DB
EN --> DB
| Layer | Tech |
|---|---|
| GUI | PyQt5 — course browser, themes, live progress bar |
| Worker | Isolated QProcess subprocess for clean stop/resume |
| Engine | engine.py + coursera-dl–adapted download pipeline |
| Auth | Browser cookies via rookiepy — no credential storage |
| Persistence | SQLite history, settings, and download state |
There are two ways to use CourseraGrab: downloading the standalone app (recommended) or running it via the Python terminal.
You do not need Python installed for this method.
- Click the button above to go to the Releases page.
- Download the
CourseraGrab.exefile from the Assets section. - Double-click the
.exefile to run the app.
If you prefer to run the raw Python code, make sure you have Python 3.12+ installed.
⚠️ CRITICAL: You MUST open your terminal (Command Prompt, PowerShell, or your IDE's Terminal) as an Administrator. If you do not run the terminal as an administrator, the script will not have permission to read your browser's login cookies and will fail to load your courses.
pip install -r requirements.txt
python maingui.pyBuilt by Hesam Samani · LinkedIn · GitHub · Portfolio
For personal, offline study of courses you are enrolled in. Please respect Coursera's Terms of Service.