A cross-platform python based utility to download courses from udemy for personal offline use.
- Python (2 or 3)
- Python
pip
- Python module
requests
- Python module
colorama
pip install -r requirements.txt
- Windows 7/8/8.1
- Kali linux (2017.1)
- Mac OSX 10.9.5
You can download the latest version of udemy-dl by cloning the GitHub repository.
git clone https://github.com/r0oth3x49/udemy-dl.git
- Added feature to download the default quality if requested quality is not there.
- Added feature to cache the credentials to file and use it later for login purpose.
- Added feature to get user input if no credentials provided using command line argument.
- Updated code for downloading captions (subtitles) if available.
Downloading course and caching credentials
python udemy-dl.py https://www.udemy.com/COURSE_NAME --configs
Downloading with specific resolution and allow default resolution as well
python udemy-dl.py https://www.udemy.com/COURSE_NAME -r 1080 -d
Downloading course after caching credentials
python udemy-dl.py https://www.udemy.com/COURSE_NAME
{
"username" : "[email protected]",
"password" : "p4ssw0rd",
"output" : "path/to/directory/",
"resolution" : "1080"
}
Example for windows users to set output directory:
"output" : "path\\to\\directory"
Downloading course
python udemy-dl.py -u [email protected] -p p4ssw0rd https://www.udemy.com/COURSE_NAME
Downloading Course with specific resolution
python udemy-dl.py -u [email protected] -p p4ssw0rd https://www.udemy.com/COURSE_NAME -r 720
Downloading course to a specific location
python udemy-dl.py -u [email protected] -p p4ssw0rd https://www.udemy.com/COURSE_NAME -o "/path/to/directory/"
Downloading course with specific resolution to a specific location
python udemy-dl.py -u [email protected] -p p4ssw0rd https://www.udemy.com/COURSE_NAME -r 720 -o "/path/to/directory/"
Saving download links
python udemy-dl.py -u [email protected] -p p4ssw0rd https://www.udemy.com/COURSE_NAME -s
Saving specific resolution download links
python udemy-dl.py -u [email protected] -p p4ssw0rd https://www.udemy.com/COURSE_NAME -s -r 720
Saving download links to specific location
python udemy-dl.py -u [email protected] -p p4ssw0rd https://www.udemy.com/COURSE_NAME -s -o "/path/to/directory/"
Saving specific resolution download links to specific location
python udemy-dl.py -u [email protected] -p p4ssw0rd https://www.udemy.com/COURSE_NAME -s -r 720 -o "/path/to/directory/"
Listing course's video informtion
python udemy-dl.py -u [email protected] -p p4ssw0rd https://www.udemy.com/COURSE_NAME -l
the above command will list down the size of video and attached files and available resolutions for a video in a course.
Author: Nasir khan (r0ot h3x49)
Usage: udemy-dl.py [-h] [-u "username"] [-p "password"] COURSE_URL
[-s] [-l] [-r VIDEO_QUALITY] [-o OUTPUT] [-d]
[--configs]
A cross-platform python based utility to download courses from udemy for
personal offline use.
Options:
General:
-h, --help Shows the help.
-v, --version Shows the version.
Advance:
-u, --username Username in udemy.
-p, --password Password of your account.
-c, --configs Cache your credentials to use it later.
-s, --save-links Do not download but save links to a file.
-l, --list-infos List all lectures with available resolution.
-r, --resolution Download video resolution, default resolution is 720p.
-d, --get-default Download default resolution if requested not there.
-o, --output Output directory where the videos will be saved,
default is current directory.
Example:
python udemy-dl.py https://www.udemy.com/course_name/
Do not change the position of any argument as given under the Usage, this may cause an error or failur in downloading of course.