Skip to content

Instantly share code, notes, and snippets.

@lsimone
Created October 22, 2017 21:19
Show Gist options
  • Save lsimone/4a334aca1a97ec41e56f42daf35e8cc6 to your computer and use it in GitHub Desktop.
Save lsimone/4a334aca1a97ec41e56f42daf35e8cc6 to your computer and use it in GitHub Desktop.
Download free egghead.io videos
#!/bin/bash
list=`lynx -source $1 | grep -o -e 'https[^"]*.m3u8' | xargs`
course="${1##*/}"
mkdir $course
echo ">>> $(echo $list | wc -w) video(s) found"
c=1
for video in $list
do
echo ">>> DOWNLOADING: $( printf "%02d" $c ) - $video"
youtube-dl $video -o "$course/$( printf "%02d" $c ) - %(title)s.%(ext)s"
let c+=1
done
@mnxoid
Copy link

mnxoid commented Mar 20, 2018

Thanks a lot. Works as a charm on Ubuntu 16.04 as of 03/20/2018

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