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

Unable to download purchased udemy courses using youtube-dl v2019.01.17 #18946

Closed
ArchivedBay opened this issue Jan 22, 2019 · 1 comment
Closed
Labels

Comments

@ArchivedBay
Copy link

@ArchivedBay ArchivedBay commented Jan 22, 2019

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.01.17. 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 2019.01.17

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

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


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl -v --cookies ./udemy-cookies.txt --sleep-interval 200 --max-sleep-interval 240 -o './%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/shell-scripting-linux/

[debug] System config: []
[debug] User config: []

[debug] Command-line args: [u'-v', u'--cookies', u'./udemy-cookies.txt', u'--sleep-interval', u'200', u'--max-sleep-interval', u'240', u'-o', u'./%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s', u'https://www.udemy.com/shell-scripting-linux/']

[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.01.17
[debug] Python version 2.7.15 (CPython) - Linux-4.18.0-13-generic-x86_64-with-debian-buster-sid
[debug] exe versions: none
[debug] Proxy map: {}
[udemy:course] shell-scripting-linux: 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 605, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2212, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/home/linuxbrew/.linuxbrew/Cellar/python@2/2.7.15_1/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/home/linuxbrew/.linuxbrew/Cellar/python@2/2.7.15_1/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/home/linuxbrew/.linuxbrew/Cellar/python@2/2.7.15_1/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/home/linuxbrew/.linuxbrew/Cellar/python@2/2.7.15_1/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/home/linuxbrew/.linuxbrew/Cellar/python@2/2.7.15_1/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

When trying to download any video off udemy that I already own the download fails with an immediate 403 error regardless of if using -u <username> -p <password> or --cookies ./udemy-cookies.txt.

What I've tried:

  • clearing my browser cache and removing all cookies and items in local/session storage then trying to log in through the CLI of youtube-dl when downloading
  • clearing my browser cache and removing all cookies and items in local/session storage then logging in through Udemy and downloading the cookie file immediately after.
  • opening an incognito tab in chrome and doing both the above.
  • trying with or without --sleep-interval

Research I've done:

  • looking at similar issues that have been closed but gaining no insight due to lack of comments or replies, or inconsistent scenarios. (a person whos issue got closed for having an old version is obv. not relevant to my issue since my version is current.)

  • FWIW if I ran the command youtube-dl --cookies ./udemy-cookies.txt -F <some-course-link> the command DID work, and an output of the available formats was displayed, however trying to download the videos fails.

@dstftw dstftw closed this Jan 22, 2019
@dstftw dstftw added the duplicate label Jan 22, 2019
@ArchivedBay
Copy link
Author

@ArchivedBay ArchivedBay commented Jan 22, 2019

immediately closing the issue 4 minutes after opening without providing any feedback or information on why does not mark for very good project management. The issue is a duplicate (and across a couple versions of youtube-dl it seems) but despite searching previous issues and reading the README.md file for the project, no information is mentioned on why this is might not be working, nor where I can go to obtain more information.

Perhaps something needs to be stated in the official readme on this, whether it's clarifying usage information or otherwise, or at the very least, pointing the user in the right direction after closing their issue.

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.