Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PluralSight ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()); #26331

Open
rrskumar4 opened this issue Aug 15, 2020 · 2 comments

Comments

@rrskumar4
Copy link

@rrskumar4 rrskumar4 commented Aug 15, 2020

Hello Team need an assistance in below:

C:\Y>youtube-dl.exe -U
youtube-dl is up-to-date (2020.07.28)

C:\Y>youtube-dl -u ****** -p ****** https://app.pluralsight.com/library/courses/commvault-help-desk-operator/table-of-contents
[pluralsight:course] commvault-help-desk-operator: Downloading JSON metadata
[download] Downloading playlist: Commvault® Help Desk Operator
[pluralsight:course] playlist Commvault® Help Desk Operator: Collected 13 video ids (downloading 13 of them)
[download] Downloading video 1 of 13
[pluralsight] Downloading login page
ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

C:\Y>youtube-dl -u ****** -p ****** https://app.pluralsight.com/library/courses/commvault-help-desk-operator/table-of-contents --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-u', 'PRIVATE', '-p', 'PRIVATE', 'https://app.pluralsight.com/library/courses/commvault-help-desk-operator/table-of-contents', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: none
[debug] Proxy map: {}
[pluralsight:course] commvault-help-desk-operator: Downloading JSON metadata
[download] Downloading playlist: Commvault® Help Desk Operator
[pluralsight:course] playlist Commvault® Help Desk Operator: Collected 13 video ids (downloading 13 of them)
[download] Downloading video 1 of 13
[pluralsight] Downloading login page
ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\extractor\common.py", line 627, in _request_webpage
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\YoutubeDL.py", line 2238, in urlopen
File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default

tried adding cookies.txt also no luck

Thanks in advance

@sagarvd01
Copy link

@sagarvd01 sagarvd01 commented Aug 15, 2020

Same here. Getting the following

>youtube-dl -U
youtube-dl is up-to-date (2020.07.28)
[pluralsight:course] illustrator-cc-crafting-visual-identity-2441: Downloading JSON metadata
[download] Downloading playlist: Crafting a Visual Identity in Illustrator CC
[pluralsight:course] playlist Crafting a Visual Identity in Illustrator CC: Collected 16 video ids (downloading 16 of them)
[download] Downloading video 1 of 16
[pluralsight] Downloading login page
ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
@booyaa
Copy link

@booyaa booyaa commented Aug 15, 2020

Will try to see if this workaround still works: #24008

Here's what is working for me at the moment:

  • Go to https://www.whatismybrowser.com/detect/what-is-my-user-agent make a note of your user agent i.e. Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36 Edg/84.0.522.59
  • Install EditThisCookie extension, go to settings and set format (defaults to JSON) to Netscape HTTP Cookie file
  • Login into Pluralsight using Chrome/Edge
  • Click on the EdiThisCookie icon, select Export, paste the cookies into a file called cookies.txt
  • Add the following switch to youtube-dl --cookie <path to cookies.txt>
  • Remove --username and --password switches.

Warning, you will still get 403s regularly, Pluralsight have upped their detection abilities. You might need to refresh cookies after each download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.