Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CourseraGrab icon

CourseraGrab

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.

Latest release Python PyQt5 Windows MIT

FFmpeg Selenium Coursera

CourseraGrab App Interface

⚙️ How it works

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
Loading
  1. Import session — CourseraGrab reads your browser login cookies via rookiepy (no password storage).
  2. List courses — the GUI fetches enrolled courses and builds a week-by-week syllabus tree.
  3. Download in worker — a QProcess subprocess runs engine.py so you can stop/resume without freezing the UI.
  4. Save locally — videos, subtitles, quizzes, notebooks, and reading resources land in your chosen folder.

✨ Features

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

🛠️ Tech Highlights

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.


🏗 Architecture

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
Loading
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

🚀 Getting Started

There are two ways to use CourseraGrab: downloading the standalone app (recommended) or running it via the Python terminal.

Method 1: Download the Windows App (.exe)

You do not need Python installed for this method.

Download Latest Release

  1. Click the button above to go to the Releases page.
  2. Download the CourseraGrab.exe file from the Assets section.
  3. Double-click the .exe file to run the app.

Method 2: Run via Terminal (Python)

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

Credits

Built by Hesam Samani · LinkedIn · GitHub · Portfolio

For personal, offline study of courses you are enrolled in. Please respect Coursera's Terms of Service.

Releases

Packages

Contributors

Languages