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

Downloading an Udemy course is not working - HTTPError() #17068

Closed
bogdansolga opened this issue Jul 26, 2018 · 3 comments
Closed

Downloading an Udemy course is not working - HTTPError() #17068

bogdansolga opened this issue Jul 26, 2018 · 3 comments

Comments

@bogdansolga
Copy link

@bogdansolga bogdansolga commented Jul 26, 2018

Downloading an Udemy course is no longer working. The command worked properly to download a few videos, but it suddenly stopped.

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--sleep=10', u'--cookies', u'./cookies.txt', u'https://www.udemy.com/the-complete-guide-to-angular-2', u'-o', u'/Volumes/Media/Video/Tech/Angular6/%(playlist)s/%(chapter_number)s. %(chapter)s/%(playlist_index)s. %(title)s.%(ext)s', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.07.21
[debug] Python version 2.7.10 (CPython) - Darwin-17.7.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[udemy:course] the-complete-guide-to-angular-2: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 403: Unauthorized (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 599, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2211, 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 437, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
@tfhavingfun
Copy link

@tfhavingfun tfhavingfun commented Jul 27, 2018

Have the same issue.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jul 27, 2018

Most likely expired cookies.

@bogdansolga
Copy link
Author

@bogdansolga bogdansolga commented Jul 29, 2018

@dstftw: with all the respect, this is an incorrect assessment; using the same cookies, the download is retried, after several (4-5) further attempts.

I don't think it's a cookie issue, it seems to be some protection (against 'robots') from Udemy.

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
3 participants
You can’t perform that action at this time.