youtube-dl: Unable to download video from Udemy 'HTTP Error 403: Forbidden' (login page)
Checklist
- I’m reporting a broken site support
- I’ve verified that I’m running youtube-dl version 2021.06.06
- I’ve checked that all provided URLs are alive and playable in a browser
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched the bugtracker for similar issues including closed ones
Verbose log
[debug] System config: []
[debug] User config: ['-u', 'PRIVATE', '-i', '--ignore-errors', '-c', '--no-warnings', '--console-title', '--batch-file=batch-file.txt', '--cookies', 'cookies.txt', '-o', '%(playlist_title)s/%(playlist_index)s-%(title)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: ['-v']
[debug] Batch file urls: ['https://www.udemy.com/course/splunker/']
Type account password and press [Return]:
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[udemy:course] Downloading login popup
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\tmpkqxnwl31\build\youtube_dl\extractor\common.py", line 634, in _request_webpage
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 2288, 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’ve been using the cookies method to download video from Oreilly.com but this does not seem to be working on udemy.com. Also tried using the username and password -u -p neither worked. I’ve followed the help mentioned here https://gist.github.com/barbietunnie/8531d9c26cd1c0668e7278c7c4ba5853
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 1
- Comments: 32 (3 by maintainers)
update: Problem solved follow this link for instructions https://www.youtube.com/watch?v=WjH9wMNnQWI
That will download 1 minute video, similar to viewing a demo. You would need the cookie tag or the -u and -p to download the full length of the video.
try just this command:
youtube-dl https://learning.oreilly.com/videos/clean-code/9780134661742
Now working. start for download all videos
Thanks for help
try this https://file.io/0MCfvqQlxNzO
-u -p -i --ignore-errors -c --no-warnings --console-title --batch-file='batch-file.txt' --cookies 'cookies.txt' -o '%(playlist_title)s/%(playlist_index)s-%(title)s.%(ext)s'