Skip to main content

Python script to download a udemy.com course, for personal offline use.

Version

0.2.1

PyPI version Build Status Code Health PyPI

Windows Version

A Windows version without any dependecies is available here

You can get the lastest Windows release from here.

https://github.com/nishad/udemy-dl-windows/releases/latest

Download udemy-dl-win-X.X.X.zip

Prerequisites

  • Python (2 or 3)

  • pip (Python Install Packager)

  • Python module requests

  • If missing, they will be automatically installed by pip

Preinstall

If you don’t have pip installed, look at their install doc. Easy install (if you trust them) is to run their bootstrap installer directly by using:

sudo curl https://bootstrap.pypa.io/get-pip.py | python

Install

udemy-dl can be installed using pip

pip install udemy-dl

or

python -m pip install udemy-dl

In OS X you need to sudo installing udemy-dl or you may face some errors

sudo pip install udemy-dl

Also you need to sudo installing pip itself or you run into the same problem.

Update

udemy-dl can be updated using pip

pip install --upgrade udemy-dl

or

python -m pip install --upgrade udemy-dl

In OS X you need to sudo upgrade udemy-dl

sudo pip install --upgrade udemy-dl

Usage

Simply call udemy-dl with the full URL to the course page.

udemy-dl https://www.udemy.com/COURSE_NAME

or

python -m udemy_dl https://www.udemy.com/COURSE_NAME

udemy-dl will ask for your udemy username (email address) and password then start downloading the videos.

By default, udemy-dl will create a subdirectory based on the course name. If you wish to have the files downloaded to a specific location, use the -o /path/to/directory/ parameter.

If you wish, you can include the username/email and password on the command line using the -u and -p parameters.

udemy-dl -u user@domain.com -p $ecRe7w0rd https://www.udemy.com/COURSE_NAME

If you ``don’t want to download but save links to a file``` for later downloading with a different downloader

python -m udemy_dl -s https://www.udemy.com/COURSE_NAME

For information about all available parameters, use the --help parameter

udemy-dl --help

Advanced Usage

usage: udemy-dl [-h] [-u USERNAME] [-p PASSWORD]
                [--lecture-start LECTURE_START] [--lecture-end LECTURE_END]
                [-o OUTPUT] [-s] [--safe-file-names] [-l] [-v]
                link

Fetch all the videos for a udemy course

positional arguments:
  link                  Link for udemy course

optional arguments:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        Username / Email
  -p PASSWORD, --password PASSWORD
                        Password
  --lecture-start LECTURE_START
                        Lecture to start at (default is 1)
  --lecture-end LECTURE_END
                        Lecture to end at (default is last)
  -o OUTPUT, --output OUTPUT
                        Output directory / text file path (if saving links)
  -s, --save-links      Do not download but save links to a file
  --safe-file-names     Use safe cross-platform filenames
  -l, --list            Just list all of the possible lectures and their ids
  -v, --version         Display the version of udemy-dl and exit

Uninstall

udemy-dl can be uninstalled using pip

sudo pip uninstall udemy-dl

You may uninstall the required requests module too but be aware that those might be required for other Python modules.

Metadata

Release files for udemy-dl 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for udemy-dl 0.2.1
File Size Uploaded Provenance
udemy-dl-0.2.1.tar.gz 16.9 kB Without provenance Details

Release files / udemy-dl-0.2.1.tar.gz

Download URL udemy-dl-0.2.1.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f691c568ff05b408e47912f61a6345e5afcec0f7266c8511a82eea3354b79f10
BLAKE2b-256 checksum
How to use checksums
58c67ac57e377e993aa5542993cb9b885b56b84d9b3b717938aaf2b52cca7854
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for udemy-dl 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page