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 webpage: HTTP Error 403: Forbidden #1482

Closed
grm1209 opened this issue Sep 22, 2013 · 2 comments
Closed

Unable to download webpage: HTTP Error 403: Forbidden #1482

grm1209 opened this issue Sep 22, 2013 · 2 comments

Comments

@grm1209
Copy link

@grm1209 grm1209 commented Sep 22, 2013

youtube-dl --verbose http://www.youtube.com/watch?feature=player_embedded&v=nkPv5RHkVH0
[1] 2306
7: [debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.youtube.com/watch?feature=player_embedded']
[debug] youtube-dl version 2013.09.20.1
[debug] Python version 2.7.5 - Linux-3.10.11-200.fc19.x86_64-x86_64-with-fedora-19-Schrödinger’s_Cat
[debug] Proxy map: {}
[youtube:user] watch: Downloading video ids from 1 to 51
ERROR: Unable to download webpage: HTTP Error 403: Forbidden; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type youtube-dl -U to update.
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 133, in _request_webpage
return compat_urllib_request.urlopen(url_or_request)
File "/usr/lib64/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib64/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib64/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/lib64/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib64/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 22, 2013

Run youtube-dl 'http://www.youtube.com/watch?feature=player_embedded&v=nkPv5RHkVH0'(pay attention to the '), the & is a special character in the shell so it must be escaped.
I'm closing this since this is probably the reason why it fails, if the problem persists comment there and we'll repoen it.
Thanks for the report.

@jaimeMF jaimeMF closed this Sep 22, 2013
@grm1209
Copy link
Author

@grm1209 grm1209 commented Sep 22, 2013

On 09/22/2013 02:11 PM, Jaime Marquínez Ferrándiz wrote:Run youtube-dl
    'http://www.youtube.com/watch?feature=player_embedded&v=nkPv5RHkVH0'(pay
  attention to the '), the & is a
  special character in the shell so it must be escaped.
Thanks very much!  It works just fine.
I should know better, but I never paid much attention to the YouTube
URLs - just copied and pasted them.  I'll just use the quotes all
the time.
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.