Skip to content

Instantly share code, notes, and snippets.

@Thiruppathi
Last active November 13, 2018 15:59
Show Gist options
  • Save Thiruppathi/ba8482cbe43e0346ab78335da3e1015b to your computer and use it in GitHub Desktop.
Save Thiruppathi/ba8482cbe43e0346ab78335da3e1015b to your computer and use it in GitHub Desktop.

Download videos from egghead

Go to the egghead course URL.

e.g. https://egghead.io/courses/asynchronous-javascript-with-async-await Click Play Course

run the following script in browser console.

$.each($('.up-next-list-item'), function(index, a){
  console.log(a.href);
});

You will get the following list

https://egghead.io/lessons/javascript-write-an-asynchronous-function-with-async-await
https://egghead.io/lessons/javascript-call-an-asynchronous-function-in-a-promise-chain
https://egghead.io/lessons/javascript-convert-any-function-into-an-asynchronous-function
https://egghead.io/lessons/javascript-handle-errors-in-asynchronous-functions
https://egghead.io/lessons/javascript-await-multiple-promises-sequentially-or-concurrently
https://egghead.io/lessons/javascript-await-multiple-promises-concurrently-with-promise-all
https://egghead.io/lessons/javascript-use-the-await-operator-with-any-thenable
https://egghead.io/lessons/javascript-iterate-asynchronously-with-the-for-await-of-loop

Steps:

  1. Save as course-name.txt

  2. brew install youtube-dl

  3. youtube-dl -a course-name.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment