# NodeJS version udemy-dl
Nodejs script to download a udemy.com course (videos only), for personal offline use, based on https://github.com/nishad/udemy-dl.

### Installation
```
npm install -g udemy-dl
```

### Version
**0.0.19**

### Usage
![udemy-dl usage](https://raw.githubusercontent.com/riazXrazor/udemy-dl/master/gif/udemy-dl.gif)

Simply call `udl` with the full URL to the course page.
```
udl 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.

```
udl -u user@domain.com -p $ecRe7w0rd https://www.udemy.com/COURSE_NAME
```

For information about all available parameters, use the `--help` parameter
```
udl --help
```

### Advanced Usage

```
Usage: udl <course_url> [-u "username"] [-p "password"] [-o "/vids/"] [-r "360"]

Commands:
  course_url  URL of the udemy coures to download

Options:
  -u, --username    Username in udemy                                   [string]
  -p, --password    Password of yor account                             [string]
  -r, --resolution  Download video resolution, default resolution is 360, for
                    other video resolutions please refer to the website.[number]
  -o, --output      Output directory where the videos will be saved, default is
                    current directory                                   [string]
  -?, --help        Show help                                          [boolean]

```


### Updates
 - *(16/05/2018)* Course selection list added, no more url needed.
 - *(09/05/2018)* Added course number in download.
 - *(02/05/2018)* Bug fixes to for code changes in udemy.
 - *(02/05/2018)* Course materials are also downloaded now.
 - *(08/12/2017)* Added option to select resolution.
 - *(08/12/2017)* Added new download statistics data.

