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

latest youtube-dl is not working for downloading udemy videos from business account #16553

Closed
adhikar opened this issue May 26, 2018 · 3 comments
Closed
Labels

Comments

@adhikar
Copy link

@adhikar adhikar commented May 26, 2018

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)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 26, 2018

You did not provide account credentials to youtube-dl.

@dstftw dstftw closed this May 26, 2018
@dstftw dstftw added the invalid label May 26, 2018
@adhikar
Copy link
Author

@adhikar adhikar commented May 26, 2018

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)_

@adhikar
Copy link
Author

@adhikar adhikar commented May 26, 2018

even if credentials are not provided, it should be able to download login page and asked for credentials which was there in previous version.

@adhikar adhikar changed the title youtube-dl is not working for udemy videos latest youtube-dl is not working for downloading udemy videos from business account May 26, 2018
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
2 participants
You can’t perform that action at this time.