ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.75k stars 10.07k forks source link

PLATZI / 403 FORBIDDEN #23786

Open Argentum72 opened 4 years ago

Argentum72 commented 4 years ago

Checklist

Verbose log


youtube-dl.exe  -u **USER** -p **PASS** -v https://platzi.com/clases/**COURSES**
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-u', 'PRIVATE', '-p', 'PRIVATE', '-v', 'https://platzi.com/clases/1638-api-rest/21612-introduccion-y-bienveni-3']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2020.01.15
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: none
[debug] Proxy map: {}
[Platzi] Downloading login page
[Platzi] Logging in
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\tmp43n_zyg3\build\youtube_dl\extractor\common.py", line 627, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp43n_zyg3\build\youtube_dl\YoutubeDL.py", line 2237, 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

## Description

I was doing the same thing I did 3 days ago to download the classes and now it doesn't work.
I tried other course links : new and already downloaded and it still doesn't work. Are there any parameters missing from the command line? Or has the site improved security? 
EParedez commented 3 years ago

I was checking this problem, is caused for the login page is not loaded correctly, this can check if you use postman to load the login page (https://platzi.com/login/)

image

We notice raised an error 403 Forbidden

dirkf commented 2 years ago

I've updated the PR code. Please test and follow up there.