ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
131.89k stars 10k forks source link

uDemy | 403 Forbidden #21904

Closed Michael-Stokoe closed 5 years ago

Michael-Stokoe commented 5 years ago

Checklist

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--username', 'PRIVATE', '--password', 'PRIVATE', '--verbose', 'https://www.udemy.com/docker-mastery', '-o', '%(playlist_index)s-%(title)s.%(ext)s', '--playlist-start', '71']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.07.16
[debug] Python version 3.7.3 (CPython) - Linux-5.1.18-1-MANJARO-x86_64-with-arch-Arch-Linux
[debug] exe versions: ffmpeg 4.1.3, ffprobe 4.1.3, rtmpdump 2.4
[debug] Proxy map: {}
[udemy:course] Downloading login popup
ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by <HTTPError 403: 'Forbidden'>); 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 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2227, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.7/urllib/request.py", line 531, in open
    response = meth(req, response)
  File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.7/urllib/request.py", line 569, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

Description

Using youtube-dl to download a course from uDemy. Full command used: youtube-dl --username "[REDACTED]" --password "[REDACTED]" --verbose "https://www.udemy.com/docker-mastery" -o "%(playlist_index)s-%(title)s.%(ext)s" --playlist-start 71

Michael-Stokoe commented 5 years ago

@remitamine Could you link to the issue this is a duplicate of?

Also I checked out #20266, which has been locked to collaborators only. Meaning if joe-public finds a fix he can't even post it.

I understand it's marked as "can't-reproduce" but simply marking my issue as a duplicate and closing it doesn't help anyone.

remitamine commented 5 years ago

Meaning if joe-public finds a fix he can't even post it.

if someone found a fix he should send a PR to be integrated with youtube-dl and than the issue will be closed once a fix has been pushed.