Skip to content

Instantly share code, notes, and snippets.

@gggauravgandhi
Created August 4, 2020 14:13
Show Gist options
  • Save gggauravgandhi/9c7043a64e9649df38fbc04456dc8160 to your computer and use it in GitHub Desktop.
Save gggauravgandhi/9c7043a64e9649df38fbc04456dc8160 to your computer and use it in GitHub Desktop.
Downloan Free EggHead Courses from Lessons, Courses, Playlist, etc

Steps

  1. Get Video links from page Paste following code into console

        setTimeout(() => {links=new Set(); $("a[data-click-handler=true]").each(function(ind , elem) {
            if(elem.href.match(/^https:\/\/egghead.io\/lessons/) ) 
            links.add(elem.href + "\n");
        }); console.log(links.size); navigator.clipboard.writeText(Array.from(links).join(""));}, 5000);

    You have 5 seconds to click within anywhere in webpage, as this trick requries docuent to be active.

  2. Create course folder, cd into it, paste clipboard data into a file named list.txt

  3. Run youtube-dl -i -o "%(autonumber)s-%(title)s.%(ext)s" -a list.txt

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