Coder Social home page Coder Social logo

udemy-dl's Introduction

udemy-dl 2.0

Install

npm i -g udemy-dl

oclif Version Downloads/week License

udemy-dl usage

Usage

$ npm install -g udemy-dl
$ udl COMMAND
running command...
$ udl (-v|--version|version)
udemy-dl/2.0.7 win32-x64 node-v10.16.3
$ udl --help [COMMAND]
USAGE
  $ udl COMMAND
...
$ npm install -g udemy-dl
$ udl COMMAND
running command...
$ udl (-v|--version|version)
udemy-dl/2.0.0 win32-x64 node-v10.16.3
$ udl --help [COMMAND]
USAGE
  $ udl COMMAND
...

Commands

udl help [COMMAND]

display help for udl

USAGE
  $ udl help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

udl login

Login to udemy.com and displays a list of courses to download.

USAGE
  $ udl login

OPTIONS
  -b, --business=business  Business name, in case of Udemy for Business
  -e, --export             Export the course data as json with links
  -o, --output=output      Output directory where the videos will be save, defaults to current directory
  -p, --password=password  Udemy password
  -r, --url=url            Url of the couse to be downloaded
  -u, --username=username  Udemy username

DESCRIPTION
  >Login to udemy.com and displays a list of courses to download.

See code: src\commands\login.js

udl reset

Erase all login credentials stored and download progress.

USAGE
  $ udl reset

OPTIONS
  -d, --downloadOnly  Erase downloading progress only
  -l, --loginOnly     Erase login credentials only

DESCRIPTION
  >Erase all login credentials stored and download progress.

See code: src\commands\reset.js

udl update

Update udemy-dl to latest version

USAGE
  $ udl update

DESCRIPTION
  >Update udemy-dl to latest version

See code: src\commands\update.js

udl help [COMMAND]

display help for udl

USAGE
  $ udl help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

udl login

Login to udemy.com and displays a list of courses to download.

USAGE
  $ udl login

OPTIONS
  -e, --export             export the course data as json with links
  -o, --output=output      output directory where the videos will be save, defaults to current directory
  -p, --password=password  udemy password
  -r, --url=url            url of the couse to be downloaded
  -u, --username=username  udemy username

DESCRIPTION
  >Login to udemy.com and displays a list of courses to download.

See code: src\commands\login.js

udl reset

Erase all login credentials stored and download progress.

USAGE
  $ udl reset

OPTIONS
  -d, --downloadOnly  Erase downloading progress only
  -l, --loginOnly     Erase login credentials only

DESCRIPTION
  >Erase all login credentials stored and download progress.

See code: src\commands\reset.js

udl update [CHANNEL]

update the udl CLI

USAGE
  $ udl update [CHANNEL]

See code: @oclif/plugin-update

udemy-dl's People

Contributors

dependabot[bot] avatar riazxrazor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

udemy-dl's Issues

wrong login

When I start the UDL command, I log in to someone else's account, and I am not allowed to log in to my account.

and I don't recognize the command udl -u ***** -p******

detecting automation tools to browse the website

Anyone getting http status code 403?

status: 403,
  response:
   Response {
     _events: [Object: null prototype] {},
     _eventsCount: 0,
     _maxListeners: undefined,
     res:
      IncomingMessage {
        _readableState: [ReadableState],
        readable: false,
        _events: [Object],
        _eventsCount: 4,
        _maxListeners: undefined,
        socket: [TLSSocket],
        connection: [TLSSocket],
        httpVersionMajor: 1,
        httpVersionMinor: 1,
        httpVersion: '1.1',
        complete: true,
        headers: [Object],
        rawHeaders: [Array],
        trailers: {},
        rawTrailers: [],
        aborted: false,
        upgrade: false,
        url: '',
        method: null,
        statusCode: 403,
        statusMessage: 'Unauthorized',
        client: [TLSSocket],
        _consuming: true,
        _dumped: false,
        req: [ClientRequest],
        text:
         '<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Access to this page has been denied.</title> <!-- Custom CSS -->  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300" rel ="stylesheet"> <style> html,body{ margin: 0; padding: 0; font-family: \'Open Sans\', sans-serif; color: #000; } a{ color: #c5c5c5; text-decoration: none; } .container{ align-items: center; display: flex; flex: 1; justify-content: space-between; flex-direction: column; height: 100%; } .container > div { width: 100%; display: flex; justify-content:center; } .container > div > div { display: flex; width: 80%; } .customer-logo-wrapper{ padding-top: 2rem; flex-grow: 0; background-color: #fff; visibility: hidden; } .customer-logo{ border-bottom: 1px solid #000; } .customer-logo > img{ padding-bottom: 1rem; max-height: 50px; max-width: auto; } .page-title-wrapper{ flex-grow: 2; } .page-title { flex-direction: column-reverse; } .content-wrapper{ flex-grow: 5; } .content{ flex-direction: column; } .page-footer-wrapper{ align-items: center; flex-grow: 0.2; background-color: #000; color: #c5c5c5; font-size: 70%; } @media (min-width:768px){ html,body{ height: 100%; } } </style> <script src="https://www.google.com/recaptcha/api.js" async defer></script> </head> <body> <section class="container"> <div class="customer-logo-wrapper"> <div class="customer-logo"> <img src=\'\' alt="Logo"/> </div> </div> <div class="page-title-wrapper"> <div class="page-title"> <h1>Please verify you are a human</h1> </div> </div> <div class="content-wrapper"> <div class="content"> <p> Please click "I am not a robot" to continue </p> <div class="g-recaptcha" data-sitekey="6Lcj-R8TAAAAABs3FrRPuQhLMbp5QrHsHufzLf7b" data-callback="handleCaptcha" data-theme="dark"> </div> <p> Access to this page has been denied because we believe you are using automation tools to browse the website. </p> <p> Th is may happen as a result of the following: </p> <ul> <li> Javascript is disabled or blocked by an extension (ad blockers for example) </li> <li> Your browser does not support cookies </li> </ul> <p> Please make sure that Javascript and cookies are enabled on your browser and that you are not blocking them from loading. </p> <p> Reference ID: #8fa4f810-4e34-11e9-a626-f91b39262958 </p> </div> </div> <div class="page-footer-wrapper"> <div class="page-footer"> <p> Powered by <a href="https://www.perimeterx.com">PerimeterX</a> , Inc. </p> </div> </div> </section> <!-- Px --> <script> ( function (){ window._pxAppId = \'PXZHh9f9x0\'; var clientSrc = \'//client.perimeterx.net/\' + window._pxAppId + \'/main.min.js\'; var p = document.getElementsByTagName("script")[0], s = document.createElement("script"); s.async = 1; s.src = clientSrc; p.parentNode.insertBefore(s, p); } () ); </script> <script> window.px_vid="";window.px_uuid="8fa4f810-4e34-11e9-a626-f91b39262958"; function handleCaptcha(response){ var vid = ""; var uuid = "8fa4f810-4e34-11e9-a626-f91b39262958"; var name = "_pxCaptcha"; var expiryUtc = new Date(Date.now()+1000*10).toUTCString(); var cookie = name + \'=\' + JSON.stringify({r: response, v: vid, u: uuid}) + \'; expires=\' + expiryUtc + \'; path=/\'; document.cookie = cookie; location.reload(); } </script> </body> </html>' }

Download from lecture X

In other similar python scripts exists the option to download from lecture X. Could be possible to add this function? For example, I downloaded a course I purchased, but my computer slept like 15 minutes because of inactivity. I just want to download from the point the computer left.

Says this to me can you help me?

          _                                          _   _

_ _ | | ___ _ __ ___ _ _ | | | |
| | | | / | / _ \ | '_ _ \ | | | | _____ / ` | | |
| |
| | | (
| | | / | | | | | | | |_| | |
| | (| | | |
_
,| _,_| _
| || || || _, | _,| ||
|
_/
? Enter your Udemy username : [email protected]
? Enter your password: password
? Enter the course url to download from udemy: https://www.udemy.com/beavoiceactor/
C:\Users\Myname\AppData\Roaming\npm\node_modules\udemy-dl\lib\core.js:308
var course_data_len = course_data['results'].length;
^

TypeError: Cannot read property 'length' of undefined
at Request._callback (C:\Users\Myname\AppData\Roaming\npm\node_modules\udemy-dl\lib\core.js:308:52)
at Request.self.callback (C:\Users\Myname\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:186:22)
at emitTwo (events.js:125:13)
at Request.emit (events.js:213:7)
at Request. (C:\Users\Myname\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:1163:10)
at emitOne (events.js:115:13)
at Request.emit (events.js:210:7)
at IncomingMessage. (C:\Users\Myname\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:1085:12)
at Object.onceWrapper (events.js:312:30)
at emitNone (events.js:110:20)

C:\Users\Myname>

this : ^ under "l" (length)

a

var course_data_len = course_data['results'].length;
^

TypeError: Cannot read property 'length' of undefined

Happening for some of the courses

no resume option

When i download my courses, and disconnected in the middle of download, udl doesn't able to resume, it just skip the file and download the next video courses.

And i notice too udl doesn't able to download courses content other than video

in original udemy-dl version, we able to resume and download all courses content (sadly original version disappear from github)

Thanks

Error while downloading...

I've been using this wonderful script for quite some time now. And everything worked like a charm.
But when I tried to download today, I got some errors. I've tried updating npm, udl, reinstalling everything, but nothing seems to help.

I'm on MacOS, latest version (non beta). This is the error that I get:

/usr/local/lib/node_modules/udemy-dl/lib/core.js:53
      cb(r,b.match(/name='csrfmiddlewaretoken'\s+value='(.*)'/)[1]);
                                                               ^

TypeError: Cannot read property '1' of null
    at Request._callback (/usr/local/lib/node_modules/udemy-dl/lib/core.js:53:64)
    at Request.self.callback (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:186:22)
    at Request.emit (events.js:180:13)
    at Request.<anonymous> (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:1163:10)
    at Request.emit (events.js:180:13)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:1085:12)
    at Object.onceWrapper (events.js:272:13)
    at IncomingMessage.emit (events.js:185:15)
    at endReadableNT (_stream_readable.js:1101:12)
    at process._tickCallback (internal/process/next_tick.js:114:19)

Issue while downloading

@riazXrazor ,
This is the error i get.

Logging in, please wait... /usr/local/lib/node_modules/udemy-dl/lib/core.js:50
cb(r,b.match(/name='csrfmiddlewaretoken'\s+value='(.*)'/)[1]);
^

TypeError: Cannot read property '1' of null
at Request._callback (/usr/local/lib/node_modules/udemy-dl/lib/core.js:50:64)
at Request.self.callback (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:186:22)
at Request.emit (events.js:159:13)
at Request. (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:1163:10)
at Request.emit (events.js:159:13)
at IncomingMessage. (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:254:19)
at IncomingMessage.emit (events.js:164:20)
at endReadableNT (_stream_readable.js:1054:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)

Thanks
Satish

CLI version doesn't work anymore

Hi,

I was using CLI version before and it was working, I guess that after GUI version is released, CLI version is not working anymore.I tried the version 1.0.0, 0.0.31, 0.0.29 and 0.0.18 and after login, nothing is happening as shown on the following picture;

image

Thank you.

Skip videos

It would be great if it's possible to skip videos

Friendly file names

Hi, when a video section/video title contains the following characters (on windows):

< (less than)

(greater than)
: (colon)
" (double quote)
/ (forward slash)
\ (backslash)
| (vertical bar or pipe)
? (question mark)

  • (asterisk)

The program hangs. Maybe a string replace on these characters?

Thanks,

1080p videos = Unknown video resolution

Enter your Udemy username : [REDACTED]
? Enter your password: *****************
? Select a course to download: 1 ) The Web Developer Bootcamp
? Select the maximum video resolution to download: 1080
◜ Initializing, please wait...
◞ Initializing, please wait... Unknown video resolution

I know for a fact that 1080p videos exist for that course when I view it on the Udemy site.
https://www.udemy.com/the-web-developer-bootcamp/

I know this tool can download 720 fine but I want 1080 downloaded if possible. Maybe Udemy changed their algorithm?

getaddrinfo ENOTFOUND undefined

Enter your Udemy username: (node:29319) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
*******@gmail.com
Enter your password: ********
Authencating... done
getaddrinfo ENOTFOUND undefined
c4r24s5%

I'm facing this problem after helplessly trying to use the service. Immediately after entering correct credentials and getting "Authenticating...done" in the terminal, I get "getaddrinfo ENOTFOUND undefined" and then I am not able to anything else after that.

I am using Mac OS Mojave.

Don't create a separate folder for each video

Every time i download a course, the downloader creates a folder for each video, there should be an option to download the videos form a section inside a section folder not ins a section folder->name of the video file folder->name of the video file.mp4
Take a look.

dir

Can't install from npm

Dear,
I try to install like your guide. But I can't, I have got the error like below.
Please help, how to fix it?

npm

Error occured during getting lecture

Error occured during getting lecture { Error: connect ETIMEDOUT 151.101.9.168:443
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1087:14)
code: 'ETIMEDOUT',
errno: 'ETIMEDOUT',
syscall: 'connect',
address: '151.101.9.168',
port: 443 }

When a video has no Resolution Choices is throwing error

The used video was https://www.udemy.com/marketup/

App is throwing the following error:

`readline.js:1088
throw err;
^

TypeError: Cannot read property 'value' of undefined
at Prompt.getCurrentValue (C:\Users\andrew.paes\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\inquirer\lib\prompts\list.js:137:50)
at tryCatcher (C:\Users\andrew.paes\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\rx\dist\rx.js:63:31)
at InnerObserver.next (C:\Users\andrew.paes\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\rx\dist\rx.js:5407:43)
at InnerObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (C:\Users\andrew.paes\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\rx\dist\rx.js:1762:31)
at InnerObserver.tryCatcher (C:\Users\andrew.paes\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\rx\dist\rx.js:63:31)
at AutoDetachObserverPrototype.next (C:\Users\andrew.paes\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\rx\dist\rx.js:5883:51)
at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (C:\Users\andrew.paes\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\rx\dist\rx.js:1762:31)
at TakeObserver.next (C:\Users\andrew.paes\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\rx\dist\rx.js:5646:17)
at TakeObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (C:\Users\andrew.paes\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\rx\dist\rx.js:1762:31)
at TakeObserver.tryCatcher (C:\Users\andrew.paes\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\rx\dist\rx.js:63:31)`

But the origin is happening on
let set_video_resolution

I tried to add a new Array when none is given, but it causes another error and so on.

Support for corporate proxy

I use a proxy to access internet.

On a linux box, udm does not take the proxy configuration of npm neither the one from the system, although the $http_proxy and $https_proxy variables are set in the terminal.

The error I get:

{"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect","address":"151.101.113.168","port":80}

Error occurred during download

There was an error in the downloading phase and now it continually gives this error?

C:\Users\User_PC\AppData\Roaming\npm\node_modules\udemy-dl\lib\core.js:97
        callback(b.match(/data-course-id="(\d+)"/)[1]);
                                                  ^
TypeError: Cannot read property '1' of null
    at Request._callback (C:\Users\User_PC\AppData\Roaming\npm\node_modules\udemy-dl\lib\core.js:97:51)
    at Request.self.callback (C:\Users\User_PC\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:185:22)
    at Request.emit (events.js:180:13)
    at Request.<anonymous> (C:\Users\User_PC\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:1161:10)
    at Request.emit (events.js:180:13)
    at IncomingMessage.<anonymous> (C:\Users\User_PC\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:1083:12)
    at Object.onceWrapper (events.js:272:13)
    at IncomingMessage.emit (events.js:185:15)
    at endReadableNT (_stream_readable.js:1101:12)
    at process._tickCallback (internal/process/next_tick.js:114:19)

SyntaxError: Unexpected token u in JSON at position 0

I can download some courses. But some courses show this error.
Select the video resolution to download: 480
undefined:1
undefined
^

SyntaxError: Unexpected token u in JSON at position 0
at Object.parse (native)
at Request._callback (C:\Users\Abhi\AppData\Roaming\npm\node_modules\udemy-dl\lib\core.js:249:32)
at self.callback (C:\Users\Abhi\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:186:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (C:\Users\Abhi\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:878:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at TLSSocket.socketErrorListener (_http_client.js:310:9)
at emitOne (events.js:96:13)

Cannot read property 'length' of undefined

C:\Users\Administrator\AppData\Roaming\npm\node_modules\udemy-dl\lib\core.js:308
var course_data_len = course_data['results'].length;
^

TypeError: Cannot read property 'length' of undefined
at Request._callback (C:\Users\Administrator\AppData\Roaming\npm\node_modules\udemy-dl\lib\core.js:308:52)
at Request.self.callback (C:\Users\Administrator\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:186:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:1163:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (C:\Users\Administrator\AppData\Roaming\npm\node_modules\udemy-dl\node_modules\request\request.js:1085:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)

Support for courses in "draft" mode

Certain courses come with a "WARNING: This course has not yet been approved by Udemy's Quality Review team and does not currently offer a Certificate of Completion" message at the top of the page
The URL for the course is in the format: https://www.udemy.com/draft/#######/ Where ####### is a number assigned by Udemy.
When trying to use udemy-dl it doesn't like that url format.
Can you add support for these courses in "draft" mode?
Screenshot from 2019-04-28 17-40-23

possible to change format so lesson numbers are included?

Currently this works fantastic but it is missing one thing IMO.. it doesn't number the lessons. It does number the folders and put the lessons in the sub-folders.. but the lessons themselves are not numbered like they are on the Udemy website so you end up not knowing the correct order to watch the lessons in

Is it possible to change this?

Error when downloading on latest version

◝ Logging in, please wait...          /Users/david/.config/yarn/global/node_modules/udemy-dl/lib/core.js:53
      cb(r,b.match(/name='csrfmiddlewaretoken'\s+value='(.*)'/)[1]);
                                                               ^

TypeError: Cannot read property '1' of null
    at Request._callback (/Users/david/.config/yarn/global/node_modules/udemy-dl/lib/core.js:53:64)
    at Request.self.callback (/Users/david/.config/yarn/global/node_modules/request/request.js:186:22)
    at emitTwo (events.js:126:13)
    at Request.emit (events.js:214:7)
    at Request.<anonymous> (/Users/david/.config/yarn/global/node_modules/request/request.js:1163:10)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at IncomingMessage.<anonymous> (/Users/david/.config/yarn/global/node_modules/request/request.js:1085:12)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)

attachment files

first thank you for this amazing app i love it.
i have a request can you please add an attachment files download feature

Cannot read property 'parent' of undefined

As the title says:

image
/usr/local/lib/node_modules/udemy-dl/node_modules/cheerio/lib/parse.js:55
var oldParent = node.parent || node.root,
^

TypeError: Cannot read property 'parent' of undefined
at Function.exports.update (/usr/local/lib/node_modules/udemy-dl/node_modules/cheerio/lib/parse.js:55:26)
at module.exports (/usr/local/lib/node_modules/udemy-dl/node_modules/cheerio/lib/parse.js:17:11)
at Function.exports.load (/usr/local/lib/node_modules/udemy-dl/node_modules/cheerio/lib/static.js:22:14)
at Request._callback (/usr/local/lib/node_modules/udemy-dl/lib/core.js:198:31)
at Request.self.callback (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:186:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:1163:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
image

error on start downloading curse

Hello, i have this error when im trying to download one curse from udemy

Logging in, please wait... /usr/lib/node_modules/udemy-dl/lib/core.js:50
cb(r,b.match(/name='csrfmiddlewaretoken'\s+value='(.*)'/)[1]);
^

TypeError: Cannot read property '1' of null
at Request._callback (/usr/lib/node_modules/udemy-dl/lib/core.js:50:64)
at Request.self.callback (/usr/lib/node_modules/udemy-dl/node_modules/request/request.js:186:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/usr/lib/node_modules/udemy-dl/node_modules/request/request.js:1163:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (/usr/lib/node_modules/udemy-dl/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)

Cannot read property '1' of null

◠ Checking course url... /usr/local/lib/node_modules/udemy-dl/lib/core.js:156
callback(b.match(/data-course-id="(\d+)"/)[1]);
^

TypeError: Cannot read property '1' of null
at Request._callback (/usr/local/lib/node_modules/udemy-dl/lib/core.js:156:51)
at Request.self.callback (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:185:22)
at Request.emit (events.js:197:13)
at Request. (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:1161:10)
at Request.emit (events.js:197:13)
at IncomingMessage. (/usr/local/lib/node_modules/udemy-dl/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:285:13)
at IncomingMessage.emit (events.js:202:15)
at endReadableNT (_stream_readable.js:1129:12)
at processTicksAndRejections (internal/process/next_tick.js:76:17)

Courses List Feature

Hello
first of all I would like to thank you for this great Repo ..
I want to request a feature in this script
Export/Download the Courses Name along with their URL
is this possible ?

Videos not downloading but pdfs and zips download fine

Hello,

On this one course, the videos do not download (come back as 0 size), but I get the x-mpegURL files in the directory.

Here's the start of the download. The first file is a PDF and it comes in fine. The second, and any other video, comes in as 0 size:

          _                                          _   _
_   _    __| |   ___   _ __ ___    _   _            __| | | |
| | | |  / _` |  / _ \ | '_ ` _ \  | | | |  _____   / _` | | |
| |_| | | (_| | |  __/ | | | | | | | |_| | |_____| | (_| | | |
\__,_|  \__,_|  \___| |_| |_| |_|  \__, |          \__,_| |_|
                                   |___/
(node:22256) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.

Chapter : 1 - Introduction to Cross-Platform Development with Flutter and Dart
File : App-Brewery-Flutter-Course-Syllabus.pdf
Location : D:\downloads\udemy\_courseDownload_RENAME_ME\1 - Introduction to Cross-Platform Development with Flutter and Dart\App-Brewery-Flutter-Course-Syllabus.pdf

  downloading [>>>>>>>>>>] 100% [87.34 KB]  TOTAL SIZE 87.34 KB / TIME REMAINING 00:00:00 ?



Chapter : 1 - Introduction to Cross-Platform Development with Flutter and Dart
Video : 1 - What is Flutter.x-mpegURL
Resolution : 1080p
Location : D:\downloads\udemy\_courseDownload_RENAME_ME\1 - Introduction to Cross-Platform Development with Flutter and Dart\1 - What is Flutter.x-mpegURL

  downloading [>>>>>>>>>>] 100% [0]  TOTAL SIZE 0 / TIME REMAINING 0 ?



Chapter : 1 - Introduction to Cross-Platform Development with Flutter and Dart
Video : 2 - Why Flutter.x-mpegURL
Resolution : 1080p
Location : D:\downloads\udemy\_courseDownload_RENAME_ME\1 - Introduction to Cross-Platform Development with Flutter and Dart\2 - Why Flutter.x-mpegURL

  downloading [>>>>>>>>>>] 100% [0]  TOTAL SIZE 0 / TIME REMAINING 0 ?

Attached are the x-mpegURL files: sample.zip

I should also mention that it takes quite a while for the download to get going - feels like a timeout of some kind (just guessing). I'd say about 30 seconds before it kicks in.

Also seems to be any of the courses I have (over 20), even the ones I successfully downloaded before.

Thanks a lot.

Getting an error

Running on Mac OS X 10.12.6
Getting an error
"env: node\r: No such file or directory"

Error Downloading please try again !!

I am using latest version upgraded 22nd january and I get this "Error Downloading please try again !!" error message, anyone can assist?

I am using a kali VM to run this. Any idea?

Login using gmail

What to do if someone has logged in using gmail. This script fails to login to udemy

download attachments

Module downloads videos correctly but attachments(html, zip) are excluded. Could you fix this in future versions?

error

◜ Checking course url... /usr/lib/node_modules/udemy-dl/lib/core.js:115
callback(b.match(/data-course-id="(\d+)"/)[1]);
^

TypeError: Cannot read property '1' of null
at Request._callback (/usr/lib/node_modules/udemy-dl/lib/core.js:115:51)
at Request.self.callback (/usr/lib/node_modules/udemy-dl/node_modules/request/request.js:186:22)
at Request.emit (events.js:180:13)
at Request. (/usr/lib/node_modules/udemy-dl/node_modules/request/request.js:1163:10)
at Request.emit (events.js:180:13)
at IncomingMessage. (/usr/lib/node_modules/udemy-dl/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:272:13)
at IncomingMessage.emit (events.js:185:15)
at endReadableNT (_stream_readable.js:1101:12)
at process._tickCallback (internal/process/next_tick.js:114:19)

you have a problem with udl please fix

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.