Skip to content

A Python CLI tool to download courses from DeepLearning.AI, including videos, captions, and reading materials.

Notifications You must be signed in to change notification settings

karimelgazar/deeplearning_ai_courses_downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepLearning.AI Course Downloader

A Python CLI tool to download courses from DeepLearning.AI, including videos, captions, and reading materials.

Installation

From Source

# Clone the repository
git clone https://github.com/karimelgazar/deeplearning_ai_courses_downloader
cd deeplearning_ai_courses_downloader

# Or install normally
pip install .

# Make sure it's installed
dl-ai -h

Configuration

The tool automatically extracts authentication cookies from your browser. Make sure you are logged into DeepLearning.AI in your browser before running the downloader.

The tool supports the following browsers:

  • Chrome
  • Chromium
  • Opera
  • Opera GX
  • Brave
  • Edge
  • Vivaldi
  • Firefox
  • LibreWolf
  • Safari

Usage

Download a Single Course

# Using full URL
dl-ai "https://learn.deeplearning.ai/courses/my-course-slug"

# Using just the slug
dl-ai my-course-slug

# With custom output directory
dl-ai my-course-slug --output-dir ./my-courses

# With concurrent downloads (faster)
dl-ai my-course-slug --concurrent 3

# Specify browser to extract cookies from (default: chrome)
dl-ai my-course-slug --browser firefox

# Combine options
dl-ai my-course-slug --browser chrome --output-dir ./my-courses --concurrent 3

Download Enrolled Courses

# Download studying courses only
dl-ai --enrolled studying

# Download finished courses only
dl-ai --enrolled finished

# Download all enrolled courses
dl-ai --enrolled all

  # With options
  dl-ai --enrolled all -o ./downloads -c 2 -b firefox

Command Line Options

  • course (positional, optional): Course URL or slug. Required if --enrolled is not used.
  • -e, --enrolled: Download enrolled courses. Choices: studying, finished, all
  • -o, --output-dir: Directory where courses will be saved (default: ./courses)
  • -c, --concurrent: Number of lessons to download concurrently (default: 1)
  • -b, --browser: Browser to extract cookies from (default: chrome). Supported: chrome, chromium, opera, opera_gx, brave, edge, vivaldi, firefox, librewolf, safari

Features

  • ✅ Download videos, captions, and reading materials
  • ✅ Concurrent downloads for faster processing
  • ✅ Progress bars with tqdm
  • ✅ Download enrolled courses (studying/finished/all)
  • ✅ Automatic 1-minute delay between course downloads
  • ✅ Error handling and recovery
  • ✅ Course information saved as markdown

Requirements

  • Python 3.8+
  • requests
  • yt-dlp
  • tqdm
  • pydantic
  • browser-cookie3

Note: Make sure you are logged into DeepLearning.AI in your browser before running the downloader. The tool extracts authentication cookies from your browser automatically.

License

MIT License

About

A Python CLI tool to download courses from DeepLearning.AI, including videos, captions, and reading materials.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages