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

ERROR: Unable to download webpage: HTTP Error 403 #21453

Closed
Imran-Haider313 opened this issue Jun 19, 2019 · 7 comments
Closed

ERROR: Unable to download webpage: HTTP Error 403 #21453

Imran-Haider313 opened this issue Jun 19, 2019 · 7 comments

Comments

@Imran-Haider313
Copy link

@Imran-Haider313 Imran-Haider313 commented Jun 19, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

I downloaded many videos of same tutorial a week ago and now when i tried to download it again it threw the error. command which I was using to download udemy tutorial is:
youtube-dl --verbose -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' -u myemail@gmail.com -p mypassword -o '%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s' https://www.udemy.com/the-complete-react-web-app-developer-course/

Logs in return show following in console

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '-f', 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best', '-u', 'PRIVATE', '-p', 'PRIVATE', '-o', '%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s', 'https://www.udemy.com/the-complete-react-web-app-developer-course/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.06.08
[debug] Python version 3.7.3 (CPython) - Darwin-17.7.0-x86_64-i386-64bit
[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 "/anaconda2/envs/py3/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/anaconda2/envs/py3/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/anaconda2/envs/py3/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/anaconda2/envs/py3/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/anaconda2/envs/py3/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)

@Imran-Haider313
Copy link
Author

@Imran-Haider313 Imran-Haider313 commented Jun 19, 2019

what I'm doing wrong? I also tried adding --rm-cache-dir but same output occur

@dstftw dstftw closed this Jun 19, 2019
@dstftw dstftw added the duplicate label Jun 19, 2019
@Imran-Haider313
Copy link
Author

@Imran-Haider313 Imran-Haider313 commented Jun 19, 2019

@dstftw dear I looked into every possible thread asked in here but nothing worked for me. that's why I asked it again. can you give me one thread which had worked for most of people ? thanks

@OkePaing
Copy link

@OkePaing OkePaing commented Jun 21, 2019

I also facing this error yet. Version is updated.

@bitraid
Copy link
Contributor

@bitraid bitraid commented Jun 21, 2019

There is an already open issue (#20266) about this (which means it's a known problem with no solution yet).

@paulwaldmann
Copy link

@paulwaldmann paulwaldmann commented Jul 24, 2020

Solution (worked for me every time)

Google "my user agent" and use the --user-agent "YOUR_USER_AGENT_HERE" option in your command-line.

@udautkarsh
Copy link

@udautkarsh udautkarsh commented Aug 6, 2020

No it doesnot

@paulwaldmann
Copy link

@paulwaldmann paulwaldmann commented Aug 6, 2020

No it doesnot

It does. I've just tested it, without the --user-agent it will throw the HTTP Error 403: Forbidden error. Once added, it immediately starts downloading. Also, I've mentioned that this works for me and it does, verified a minute ago.

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