Skip to content

Instantly share code, notes, and snippets.

@munim
Last active July 28, 2022 21:19
Show Gist options
  • Select an option

  • Save munim/19db42eefc65049b2119e4c6a820c415 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

how to do for windows users?

@jesujcastillom

Copy link
Copy Markdown

@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

a-eid commented Jun 12, 2017

Copy link
Copy Markdown

what regexp would reproduce the same functionality on lynda.com

@aboyassein

aboyassein commented Jul 20, 2017

Copy link
Copy Markdown

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

ghost commented Aug 26, 2017

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown

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

indefinitelee commented Sep 21, 2017

Copy link
Copy Markdown

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
Copy Markdown

@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
Copy Markdown

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

@tmgbedu

tmgbedu commented Mar 17, 2018

Copy link
Copy Markdown

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

@anilshrish

Copy link
Copy Markdown

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

@ITReliable

ITReliable commented Nov 1, 2020

Copy link
Copy Markdown

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
Copy Markdown

@wordmountain Is It still working with you

@that-coder

Copy link
Copy Markdown

@AhmedGamalGazar worked for me!

@pravinbelurkar

pravinbelurkar commented Feb 17, 2021

Copy link
Copy Markdown

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