tgc-dl


Nametgc-dl JSON
Version 1.0.1.2 PyPI version JSON
download
home_pageNone
SummaryDownload courses from The Great Courses Plus.
upload_time2025-07-17 23:49:02
maintainerNone
docs_urlNone
authorNone
requires_python<4.0,>=3.10
licenseNone
keywords download downloader downloads
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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)
*   `ffproble` (for detecting if a file has a video or an audio stream)

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](https://ffmpeg.org/download.html).

### Using `uv`

```bash
uv tool install tgc-dl
```

## Usage

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

```bash
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.
*   `--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:

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

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

```bash
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:

```bash
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:

```bash
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](https://chrome.google.com/webstore/detail/export-cookies/gncdojndgmmjmjgcljchdgnlglfcfhll) for Chrome or [Cookie Quick Manager](https://addons.mozilla.org/en-US/firefox/addon/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](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).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "tgc-dl",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "download, downloader, downloads",
    "author": null,
    "author_email": null,
    "download_url": null,
    "platform": null,
    "description": "# The Great Courses Plus Downloader\n\nA 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.\n\n## Features\n\n*   **Course and Lecture Download:** Download entire courses or select specific lectures.\n*   **Guidebook Download:** Automatically download accompanying PDF guidebooks when available.\n*   **Quality Selection:** Choose your preferred video quality (e.g., 360p, 480p, 720p, 1080p).\n*   **Lecture Range Selection:** Download a specific range of lectures (e.g., `1-5`, `3`, `1,3,5`).\n*   **Resumable Downloads:** Skips already downloaded lectures.\n*   **Flexible Output:** Specify the directory where downloaded content will be saved.\n*   **Dry Run Mode:** Preview what would be downloaded without actually downloading files.\n*   **Logging:** Detailed logging for debugging and monitoring progress.\n\n## Installation\n\n### Prerequisites\n\n*   Python 3.10+\n*   `ffmpeg` (for merging video and audio streams)\n*   `ffproble` (for detecting if a file has a video or an audio stream)\n\nYou 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](https://ffmpeg.org/download.html).\n\n### Using `uv`\n\n```bash\nuv tool install tgc-dl\n```\n\n## Usage\n\nThe `tgc-dl` tool is invoked from the command line.\n\n```bash\ntgc-dl [OPTIONS] COURSE_URLS...\n```\n\n### Arguments\n\n*   `COURSE_URLS`: One or more URLs of the courses you want to download.\n\n### Options\n\n*   `--cookies-file`, `-c`: Path to the `cookies.txt` file. This file is essential for authentication. (Default: `tgcp-cookies.txt` in the current working directory)\n*   `--output-directory`, `-o`: Path to where the downloads will be stored. (Default: Current working directory)\n*   `--quality`, `-q`: Quality of the video to download (min: 360, max: 1080). (Default: 1080)\n*   `--lecture-range`, `-r`: Download a specific range of lectures (e.g., `'1-5'`, `'3'`, `'1,3,5'`). Only applicable when downloading a single course.\n*   `--debug`, `-d`: Print debug statements. (Default: `False`)\n*   `--dry-run`, `-n`: Dry-run; does not download anything. (Default: `False`)\n\n### Examples\n\nDownload a single course with default settings:\n\n```bash\ntgc-dl \"https://www.wondrium.com/course/the-history-of-ancient-egypt\"\n```\n\nDownload a course to a specific directory and 720p quality:\n\n```bash\ntgc-dl -o /path/to/your/downloads -q 720 \"https://www.wondrium.com/course/the-history-of-ancient-egypt\"\n```\n\nDownload specific lectures from a course:\n\n```bash\ntgc-dl -r \"1-3,5\" \"https://www.wondrium.com/course/the-history-of-ancient-egypt\"\n```\n\nPerform a dry run to see what would be downloaded:\n\n```bash\ntgc-dl -n \"https://www.wondrium.com/course/the-history-of-ancient-egypt\"\n```\n\n## Obtaining `cookies.txt`\n\nTo 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](https://chrome.google.com/webstore/detail/export-cookies/gncdojndgmmjmjgcljchdgnlglfcfhll) for Chrome or [Cookie Quick Manager](https://addons.mozilla.org/en-US/firefox/addon/cookie-quick-manager/) for Firefox.\n\n1.  Log in to your Wondrium (The Great Courses Plus) account in your web browser.\n2.  Use the extension to export your cookies in the \"Mozilla `cookies.txt`\" format.\n3.  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.\n\n## Contributing\n\nContributions are welcome! Please feel free to open issues or submit pull requests.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Disclaimer\n\nThis tool is intended for personal use only. Please respect the terms of service of \"The Great Courses Plus\" (Wondrium).\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Download courses from The Great Courses Plus.",
    "version": "1.0.1.2",
    "project_urls": {
        "Documentation": "https://github.com/rapjul/tgc-dl/blob/main/README.md",
        "Homepage": "https://github.com/rapjul/tgc-dl"
    },
    "split_keywords": [
        "download",
        " downloader",
        " downloads"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "7c1ffeb2548d64db1b6a1ad97a0775b52937d4f0686cda4b7ae92048379244cb",
                "md5": "87d547ecb153213b02f321d419096e8f",
                "sha256": "1d8868c7690ceebcf29d61f39a5e84703abaec85b2b056d98db4b9e0ab8d9739"
            },
            "downloads": -1,
            "filename": "tgc_dl-1.0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "87d547ecb153213b02f321d419096e8f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 21382,
            "upload_time": "2025-07-17T23:49:02",
            "upload_time_iso_8601": "2025-07-17T23:49:02.648046Z",
            "url": "https://files.pythonhosted.org/packages/7c/1f/feb2548d64db1b6a1ad97a0775b52937d4f0686cda4b7ae92048379244cb/tgc_dl-1.0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-17 23:49:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rapjul",
    "github_project": "tgc-dl",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "tgc-dl"
}
        
Elapsed time: 0.58389s