Closed FerasArabiat closed 2 years ago
same here.... any update in the foreseeable future?
Having the same problem, and using YTDL 2021-05-16
The command I'm using is the following (Removing my creds and pword from the CLI)
youtube-dl -u USER -p PASSWORD -o "./%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s" "https://www.udemy.com/course/blendertutorial/"
[debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['-u', 'PRIVATE', '-p', 'PRIVATE', '-o', './%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s', 'https://www.udemy.com/course/blendertutorial/', '--verbose'] [debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252 [debug] youtube-dl version 2021.05.16 [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\tmp8rlhijs0\build\youtube_dl\extractor\common.py", line 634, in _request_webpage File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp8rlhijs0\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
G:\udemy>youtube-dl -U youtube-dl is up-to-date (2021.05.16)
Can confirm. It's only a problem when a video is hosted on AWS. The other videos (even some of the same course!) are working just fine.
Udemy changed their DRM late April. i am only guessing here, but I bet that is the issue. Other downloaders that used to work for Udemy are also not working...
If anyone figures out how to make this work again, it would be greatly appreciated.
Confirming issue trying so save for offline use
PS C:\Users\shane\Downloads\Network Plus> youtube-dl -U
youtube-dl is up-to-date (2021.06.06)
PS C:\Users\shane\Downloads\Network Plus> youtube-dl --cookies udemy.com_cookies.txt https://www.udemy.com/course/comptia-network-plus-video-training/learn/lecture/26720716#overview
[udemy:course] course: Downloading webpage
[udemy:course] 3985912: Downloading course curriculum
[download] Downloading playlist: 3985912
[udemy:course] playlist 3985912: Collected 189 video ids (downloading 189 of them)
[download] Downloading video 1 of 189
[udemy] 26720576: Downloading webpage
[udemy] 26720576: Downloading lecture JSON
[udemy] 26720576: Downloading lecture JSON
ERROR: Unable to download JSON metadata: 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.
PS C:\Users\shane\Downloads\Network Plus>
Any idea how to fix or bypass this issue?
Same here having this issue.
Any idea how to fix or bypass this issue?
@mohgabr For now I'm using this on courses I own https://github.com/FaisalUmair/udemy-downloader-gui < tremendous app, it's a gui, I know, but it works : )
Thanks to @jadence who said the following:
I was having the same 403 error despite purchasing the course. To fix it I did two things:
After the above two steps running youtube-dl --cookies cookies.txt https://www.udemy.com/
2. Changed the course URL from https://www.udemy.com/course/<course_name>/ to https://www.udemy.com/<course_name>/
that's the trick, thank you, works for me
@johseg @smaga38 I did both steps and didn't work for me which python version are you using?
youtube-dl --cookies cookies.txt https://naspers.udemy.com/protocol-buffers/ --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--cookies', u'cookies.txt', u'https://naspers.udemy.com/protocol-buffers/', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 2.7.16 (CPython) - Darwin-20.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.4, ffprobe 4.4
[debug] Proxy map: {}
[udemy:course] protocol-buffers: Downloading webpage
[udemy:course] 1612492: Downloading course curriculum
ERROR: Unable to download JSON metadata: 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 "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 634, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2288, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
and same error using python3
python3 /usr/local/bin/youtube-dl --cookies cookies.txt --verbose https://naspers.udemy.com/protocol-buffers/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--cookies', 'cookies.txt', '--verbose', 'https://naspers.udemy.com/protocol-buffers/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.9.5 (CPython) - macOS-11.4-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.4, ffprobe 4.4
[debug] Proxy map: {}
[udemy:course] protocol-buffers: Downloading webpage
[udemy:course] 1612492: Downloading course curriculum
ERROR: Unable to download JSON metadata: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); 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 "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 634, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2288, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(*args)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
yeah also have the same issue again :( It works for some files but not for others (as stated by Thomas above)
Checklist
Verbose log
Description
When trying to downloading some courses from Udemy, the downloads do not proceed passed the publically available previews.
I have tried these two and it did not work: https://www.udemy.com/course/neo4j-foundations/ https://www.udemy.com/course/the-ultimate-mysql-bootcamp-go-from-sql-beginner-to-expert/
Note the URL that the content is being pulled from differs between the working and non working URLS
vs
I can provide credentials as needed via email or lastpass whatever works best.