Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save linnykoleh/8ba696c06157f74e8fb7ceee1f03dd86 to your computer and use it in GitHub Desktop.
Save linnykoleh/8ba696c06157f74e8fb7ceee1f03dd86 to your computer and use it in GitHub Desktop.
youtube-dl for downloading pluralsight videos

Downloading Videos from Pluralsight

Disclaimer

Pluralsight do not permit users to download their videos.
If you are an user of pluralsight you have agreed with their ToS,
and are thusly refrained from doing so.
Use this knowledge at your own risk.

youtube-dl for Linux

youtube-dl will allow you to download entire video series just by pasting in the link to the course. This includes english subtitles where applicable.

1. Download youtube-dl

You can get it here from their official web-site.

2. Create the bash script file

We are going to create bash script that will store all the information we need to quickly and easily download videos from pluralsight. Make sure you save it inside /bin, as it will allow us to run the 'pluralsight-dl' command from anywhere.

sudo touch /usr/local/bin/pluralsight-dl
sudo chmod a+rx /usr/local/bin/pluralsight-dl
sudo nano /usr/local/bin/pluralsight-dl

3. Paste in the script

#!/bin/bash
for i in "$@";
do

youtube-dl
--username [USERNAME]
--password [PASSWORD]
"$i"
-o "/home/[USER]/Videos/%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s"
--sleep-interval 20
--max-sleep-interval 60
--sub-lang en
--sub-format srt
--write-sub

done

  1. Remember to add your own username, password and path to where you want the videos to be stored.
  2. If you wish to change the formatting of the files being saved, you can learn more about it here.

3. Begin downloading videos

All you have to do now in order to download pluralsight videos, is to run:

pluralsight-dl [URL-HERE]

You can also add multiple URLs, separated by a space:

pluralsight-dl [URL1] [URL2] [URL3]

If you open up a text editor, you can also prepare all your URL in a similar fashion:

pluralsight-dl \
[URL1] \
[URL2] \
[URL3]

URL is usually formatted similar to https://app.pluralsight.com/library/courses/some-course-name

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