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.
@DaviBittencourt
Copy link

how to do for windows users?

@jesujcastillom
Copy link

@SovietBear is right, But this is the only way I can watch their videos, since it isn't working in any browser, but I can download them and watch, from linux, so the app options is not an option. And if they do ban my account, I'll just get another. ;)

@a-eid
Copy link

a-eid commented Jun 12, 2017

what regexp would reproduce the same functionality on lynda.com

@aboyassein
Copy link

aboyassein commented Jul 20, 2017

i try to download 2 courses with 2 bash file and one of them give me an error

WARNING: Unable to download JSON metadata: HTTP Error 429: Too Many Requests
[pluralsight] bash-shell-scripting-m6-control-6: Waiting for 5 seconds to avoid throttling
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

if I run the script again did will download from start again ??
if yes!
how to escape what already downloaded?

many thanks

Copy link

ghost commented Aug 26, 2017

Is there a way to bypass them noticing the activities. I want to download and view it locally. It's so much easier.

@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