Skip to content

Instantly share code, notes, and snippets.

@munim
Last active July 28, 2022 21:19
Show Gist options
  • Save munim/19db42eefc65049b2119e4c6a820c415 to your computer and use it in GitHub Desktop.
Save munim/19db42eefc65049b2119e4c6a820c415 to your computer and use it in GitHub Desktop.
youtube-dl to download pluralsight videos

Download Plural Sight videos

Software required:

youtube-dl

After installation and putting the youtube-dl in PATH

youtube-dl \
  --username YOUR_USERNAME \
  --password YOUR_PASSWORD \
  https://www.pluralsight.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 Plural Sight username
  • YOUR_PASSWORD is your Plural Sight password
  • --sleep-internval is optional but it's a safe practice to mimic video watching.
@steveb4088
Copy link

Does anyone know if variables can be assigned and placed in the url ? if so could you please explain how i could go about doing this? any help is greatly appreciated thanks

@PracticeX
Copy link

Does anyone know a workaround to the new reCAPTCHA that guards the site? After downloading a couple courses, I get a 403 error from running youtube-dl. When I go on the site and click login, I am presented with a reCAPTCHA which I think is causing the 403.

@indefinitelee
Copy link

indefinitelee commented Sep 21, 2017

got

Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by HTTPError())

several times in a row. Then it started working, now it's stopped in the middle of a batch of dls.
Anyone have some ideas?

@ivocosme
Copy link

@indefinitelee are you logged in in Plural in a browser session? If you are, then try to log out and use the command line. That fixed the Forbidden error for me.

@ProMadGenius
Copy link

@ivocosme i tried log out in the browser, and try again the command with not success :'v.

@bedus-creation
Copy link

How can i Skip the first 10 video and start download from 11th ?

@anilshrish
Copy link

@bedus-creation add this option: --playlist-start 10

@ITReliable
Copy link

ITReliable commented Nov 1, 2020

works for me today 2020-10-31 with batch file for exmaple download.bat
for %%a in (%*) do (
.\youtube-dl.exe ^
--verbose ^
--add-header Referer:'https://app.pluralsight.com/library/courses/' ^
--username "yourusername" ^
--password "yourpassword" ^
%%a ^
-o "%%(playlist)s/%%(autonumber)03d-%%(title)s.%%(ext)s" ^
--min-sleep-interval 90 ^
--max-sleep-interval 133 ^
--sub-format srt ^
--write-sub
)


Usage example:
download.bat https://app.pluralsight.com/library/courses/microsoft-azure-solutions-architect-design-governance/table-of-contents

@AhmedGamalGazar
Copy link

@wordmountain Is It still working with you

@that-coder
Copy link

@AhmedGamalGazar worked for me!

@pravinbelurkar
Copy link

pravinbelurkar commented Feb 17, 2021

I don't have much idea how to start. Can someone please give me all steps for windows?
I am getting below errors -
image

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