Skip to main content

Download courses from The Great Courses Plus.

Project description

The Great Courses Plus Downloader

A command-line interface (CLI) tool to download courses, lectures, and guidebooks from "The Great Courses Plus" (now Wondrium). This tool allows users to download content for offline viewing, with options for video quality, specific lecture ranges, and output directory customization.

Features

  • Course and Lecture Download: Download entire courses or select specific lectures.
  • Guidebook Download: Automatically download accompanying PDF guidebooks when available.
  • Quality Selection: Choose your preferred video quality (e.g., 360p, 480p, 720p, 1080p).
  • Lecture Range Selection: Download a specific range of lectures (e.g., 1-5, 3, 1,3,5).
  • Resumable Downloads: Skips already downloaded lectures.
  • Flexible Output: Specify the directory where downloaded content will be saved.
  • Dry Run Mode: Preview what would be downloaded without actually downloading files.
  • Logging: Detailed logging for debugging and monitoring progress.

Installation

Prerequisites

  • Python 3.10+
  • ffmpeg (for merging video and audio streams)

You can install ffmpeg via your system's package manager (e.g., brew install ffmpeg on macOS, sudo apt-get install ffmpeg on Debian/Ubuntu) or download it from the official FFmpeg website.

Using pip

pip install tgc-dl

From Source

  1. Clone the repository:

    git clone https://github.com/your-username/tgc-dl.git
    cd tgc-dl
    
  2. Install dependencies:

    pip install -e .
    

Usage

The tgc-dl tool is invoked from the command line.

tgc-dl [OPTIONS] COURSE_URLS...

Arguments

  • COURSE_URLS: One or more URLs of the courses you want to download.

Options

  • --cookies-file, -c: Path to the cookies.txt file. This file is essential for authentication. (Default: tgcp-cookies.txt in the current working directory)
  • --output-directory, -o: Path to where the downloads will be stored. (Default: Current working directory)
  • --quality, -q: Quality of the video to download (min: 360, max: 1080). (Default: 1080)
  • --lecture-range, -r: Download a specific range of lectures (e.g., '1-5', '3', '1,3,5'). Only applicable when downloading a single course.
  • --streaming-output, -s: Stream the output from FFMPEG as it is running. (Default: False)
  • --debug, -d: Print debug statements. (Default: False)
  • --dry-run, -n: Dry-run; does not download anything. (Default: False)

Examples

Download a single course with default settings:

tgc-dl "https://www.wondrium.com/course/the-history-of-ancient-egypt"

Download a course to a specific directory and 720p quality:

tgc-dl -o /path/to/your/downloads -q 720 "https://www.wondrium.com/course/the-history-of-ancient-egypt"

Download specific lectures from a course:

tgc-dl -r "1-3,5" "https://www.wondrium.com/course/the-history-of-ancient-egypt"

Perform a dry run to see what would be downloaded:

tgc-dl -n "https://www.wondrium.com/course/the-history-of-ancient-egypt"

Obtaining cookies.txt

To download content, you need to provide a cookies.txt file containing your Wondrium (formerly The Great Courses Plus) session cookies. You can obtain this file using browser extensions like Export Cookies for Chrome or Cookie Quick Manager for Firefox.

  1. Log in to your Wondrium (The Great Courses Plus) account in your web browser.
  2. Use the extension to export your cookies in the "Mozilla cookies.txt" format.
  3. Save the file as tgcp-cookies.txt in the same directory where you run the tgc-dl command, or specify its path using the --cookies-file option.

Contributing

Contributions are welcome! Please feel free to open issues or submit pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This tool is intended for personal use only. Please respect the terms of service of "The Great Courses Plus" (Wondrium).

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

tgc_dl-1.0.1-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file tgc_dl-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: tgc_dl-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.20

File hashes

Hashes for tgc_dl-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 561c562a911511e277af505d2e4f89bcd9047c2b46f56199dbf0266723d670b2
MD5 719d6c51bb7956ff3f8772f8922b271e
BLAKE2b-256 c9227c196302b11cc6dc232216db1b29df2f5bd754730d24a92be65778613c4e

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