GithubHelp home page GithubHelp logo

rixtrayker / udemy-dl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from r0oth3x49/udemy-dl

0.0 2.0 0.0 124 KB

A cross-platform python based utility to download courses from udemy for personal offline use.

Python 100.00%

udemy-dl's Introduction

GitHub release GitHub stars GitHub forks GitHub issues

udemy-dl

A cross-platform python based utility to download courses from udemy for personal offline use.

udemy-dl.gif

Requirements

  • Python (2 or 3)
  • Python pip
  • Python module requests
  • Python module colorama
  • Python module requests[security] : (for Mac Users only)

Install modules

pip install -r requirements.txt

Tested on

  • Windows 7/8/8.1
  • Kali linux (2017.2)
  • Mac OSX 10.9.5 (tested with super user)

Download udemy-dl

You can download the latest version of udemy-dl by cloning the GitHub repository.

git clone https://github.com/r0oth3x49/udemy-dl.git

Updates

  • 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.

Change-log

  • Fixed some issues & improved code quality for Python3.
  • Fixed #13 (UnicodeEncodeError) thanks for quick patch by @jdsantiagojr
  • Added feature to skip captions/subtitle and download course only.
  • Added feature to download captions/subtitle only thanks to @leo459028.
  • Added feature to edit the password by pressing backspace on command line.

Configuration


	
	
	{
		"username" 		: "[email protected]",
		"password" 		: "p4ssw0rd",
		"output" 		: "path/to/directory/",
		"resolution" 		: "1080"
	}
	
	Example for windows users to set output directory:
		"output" 		: "path\\to\\directory"
		

Usage

Downloading course

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL

Downloading Course with specific resolution

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL -r 720

Downloading course to a specific location

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL -o "/path/to/directory/"

Downloading course with specific resolution to a specific location

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL -r 720 -o "/path/to/directory/"

Saving download links

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL -s

Saving specific resolution download links

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL -s -r 720

Saving download links to specific location

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL -s -o "/path/to/directory/"

Saving specific resolution download links to specific location

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL -s -r 720 -o "/path/to/directory/"

Downloading course and caching credentials

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL --configs

Downloading with specific resolution and allow default resolution as well

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL -r 1080 -d

Downloading course but skip captions/subtitles

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL --skip-sub

Downloading captions/subtitles only

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL --sub-only

Listing course's video informtion

python udemy-dl.py -u [email protected] -p p4ssw0rd COURSE_URL -l

the above command will list down the size of video and attached files and available resolutions for a video in a course.

Advanced Usage


Author: Nasir khan (r0ot h3x49)

Usage: udemy-dl.py [-h] [-u "username"] [-p "password"] COURSE_URL
                   [-s] [-l] [-r "resolution"] [-o "/path/to/directory/"]
                   [-d] [-c/--configs] [--sub-only] [--skip-sub]

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.
  
  Others:
    --sub-only         Download captions/subtitle only.
    --skip-sub         Download course but skip captions/subtitle.

  Example:
	python udemy-dl.py  COURSE_URL

Note

Do not change the position of any argument as given under the Usage, this may cause an error or failur in downloading of course.

udemy-dl's People

Contributors

r0oth3x49 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.