Closed adhikar closed 6 years ago
You did not provide account credentials to youtube-dl.
i provided but i can't show credentials over here let me bring you the sample command which i am using.
_PS D:\> youtube-dl --verbose -u sample@email.com -p password https://businessAccount.udemy.com/getting-started-with-microsoft-azure/learn/v4/overview [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--verbose', '-u', 'PRIVATE', '-p', 'PRIVATE', 'https://businessAccount.udemy.com/getting-started-with-microsoft-azure/learn/v4/overview'] [debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252 [debug] youtube-dl version 2018.05.26 [debug] Python version 3.6.1 (CPython) - Windows-10-10.0.16299-SP0 [debug] exe versions: none [debug] Proxy map: {} [generic] overview: Requesting header WARNING: Could not send HEAD request to https://businessAccount.udemy.com/getting-started-with-microsoft-azure/learn/v4/overview: HTTP Error 403: Unauthorized [generic] overview: Downloading webpage ERROR: Unable to download webpage: HTTP Error 403: Unauthorized (caused by <HTTPError 403: 'Unauthorized'>); 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. File "c:\users\samar\anaconda3\lib\site-packages\youtube_dl\extractor\common.py", line 579, in _request_webpage return self._downloader.urlopen(url_or_request) File "c:\users\samar\anaconda3\lib\site-packages\youtube_dl\YoutubeDL.py", line 2211, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "c:\users\samar\anaconda3\lib\urllib\request.py", line 532, in open response = meth(req, response) File "c:\users\samar\anaconda3\lib\urllib\request.py", line 642, in http_response 'http', request, response, code, msg, hdrs) File "c:\users\samar\anaconda3\lib\urllib\request.py", line 570, in error return self._call_chain(*args) File "c:\users\samar\anaconda3\lib\urllib\request.py", line 504, in _call_chain result = func(*args) File "c:\users\samar\anaconda3\lib\urllib\request.py", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp)_
even if credentials are not provided, it should be able to download login page and asked for credentials which was there in previous version.
showing 403 error while hitting udemy url. see below errors.
PS D:\> youtube-dl --verbose https://businessAccount.udemy.com/getting-started-with-microsoft-azure/learn/v4/overview [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['--verbose', 'https://businessAccount.udemy.com/getting-started-with-microsoft-azure/learn/v4/overview'] [debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252 [debug] youtube-dl version 2018.05.26 [debug] Python version 3.6.1 (CPython) - Windows-10-10.0.16299-SP0 [debug] exe versions: none [debug] Proxy map: {} [generic] overview: Requesting header WARNING: Could not send HEAD request to https://businessAccount.udemy.com/getting-started-with-microsoft-azure/learn/v4/overview: HTTP Error 403: Unauthorized [generic] overview: Downloading webpage ERROR: Unable to download webpage: HTTP Error 403: Unauthorized (caused by <HTTPError 403: 'Unauthorized'>); 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. File "c:\users\samar\anaconda3\lib\site-packages\youtube_dl\extractor\common.py", line 579, in _request_webpage return self._downloader.urlopen(url_or_request) File "c:\users\samar\anaconda3\lib\site-packages\youtube_dl\YoutubeDL.py", line 2211, in urlopen return self._opener.open(req, timeout=self._socket_timeout) File "c:\users\samar\anaconda3\lib\urllib\request.py", line 532, in open response = meth(req, response) File "c:\users\samar\anaconda3\lib\urllib\request.py", line 642, in http_response 'http', request, response, code, msg, hdrs) File "c:\users\samar\anaconda3\lib\urllib\request.py", line 570, in error return self._call_chain(*args) File "c:\users\samar\anaconda3\lib\urllib\request.py", line 504, in _call_chain result = func(*args) File "c:\users\samar\anaconda3\lib\urllib\request.py", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp)