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

HTTP error for Udemy course video download #15632

Closed
toxicmender opened this issue Feb 17, 2018 · 2 comments
Closed

HTTP error for Udemy course video download #15632

toxicmender opened this issue Feb 17, 2018 · 2 comments
Labels

Comments

@toxicmender
Copy link

@toxicmender toxicmender commented Feb 17, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.02.11. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.02.11

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones. Closed issue are quite similar (debug log is same) #15600 & #15607
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


Bug Report [Site Support]

The udemy course (downloading the playlist/video course) is a paid course, which i download by providing my login credentials (-u user@email.com -p passphrase) for the ID i have bought the course with. I have successfully downloaded some of the course video (same one) before but couldn't complete it due to time constraints.

[debug] System config: []
[debug] User config: [u'-o', u'~/Videos/youtube/%(title)s.%(ext)s', u'-f', u'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best']
[debug] Custom config: []
[debug] Command-line args: [u'-u', u'PRIVATE', u'-p', u'PRIVATE', u'-o', u'~/Videos/%(playlist)s/%(chapter_number)s-%(chapter)s/%(title)s.%(ext)s', u'https://www.udemy.com/become-an-android-developer-from-scratch/', u'--verbose']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.11
[debug] Python version 2.7.12 (CPython) - Linux-4.13.0-32-generic-i686-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.11-0ubuntu0.16.04.1, ffprobe 2.8.11-0ubuntu0.16.04.1, rtmpdump 2.4
[debug] Proxy map: {}
[udemy:course] Downloading login popup
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 519, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2199, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
<end of log>

Description

The issue seems to be a failure to either download the login page or to post the login credentials, possibly due to changes to the site or any changes made to how youtube-dl manages to login using the passed credentials. I don't believe my login credentials would be required but I'll provide cooperation if needed.
Course link: https://www.udemy.com/become-an-android-developer-from-scratch/

@dstftw dstftw closed this Feb 17, 2018
@dstftw dstftw added the duplicate label Feb 17, 2018
@ghost
Copy link

@ghost ghost commented Sep 12, 2018

Hello
I am running youtube-dl --version 2018.09.10 with Python 37.

I am getting error below
[udemy:course] Downloading login popup
[udemy:course] Logging in
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.

Whats wrong? Please revert

@DiogoCruz10
Copy link

@DiogoCruz10 DiogoCruz10 commented Nov 11, 2018

sanjaymahajan09, have the same problem... can you help me?

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.