Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save skmezanul/085f369729a4f06f8eca89012a7de61e to your computer and use it in GitHub Desktop.

Select an option

Save skmezanul/085f369729a4f06f8eca89012a7de61e to your computer and use it in GitHub Desktop.
youtube-dl to download from a famous online developer training site

Download videos

Software required:

youtube-dl

After installation and putting the youtube-dl in PATH

youtube-dl \
  --username YOUR_USERNAME \
  --password YOUR_PASSWORD \
  https://www.trainingsite.com/courses/bash-shell-scripting \
  -o "/home/user/videos/%(playlist)s/%(chapter_number)s. %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s" \
  --sleep-interval 10

Where

  • YOUR_USERNAME is your training site username
  • YOUR_PASSWORD is your training site password
  • --sleep-internval is optional but it's a safe practice to mimic video watching.

Disclaimer

Please, only use it for your convenience so that you can watch the course videos on your iPod, TV, etc.

Usage for the purpose of piracy is strictly prohibited, decrypted videos should not be uploaded to open servers, torrents, or other methods of mass distribution. Any consequences resulting from misuse of this tool are to be taken by the user.

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