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

Failed to download from youtube #2339

Closed
tbrodel opened this issue Feb 7, 2014 · 1 comment
Closed

Failed to download from youtube #2339

tbrodel opened this issue Feb 7, 2014 · 1 comment

Comments

@tbrodel
Copy link

@tbrodel tbrodel commented Feb 7, 2014

Trying to download mp4 from youtube, here's the output with --verbose flag

[toby@bunyip Videos]$ youtube-dl -f mp4 --verbose https://www.youtube.com/results?search_query=bill%20nye%20ken%20ham%20debate
[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Command-line args: ['-f', 'mp4', '--verbose', 'https://www.youtube.com/results?search_query=bill%20nye%20ken%20ham%20debate']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.06.3
[debug] Python version 2.7.5 - Linux-3.12.9-301.fc20.x86_64-x86_64-with-fedora-20-Heisenbug
[debug] Proxy map: {}
[download] Downloading playlist: results
[youtube:user] results: 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 "/bin/youtube-dl/youtube_dl/extractor/common.py", line 191, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1157, in urlopen
return self._opener.open(req)
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 Feb 7, 2014

You can run youtube-dl 'ytsearch10:bill nye ken ham debate' to get the 10 first videos of the search query. We could probably recognize search urls.

@dstftw dstftw closed this Apr 10, 2016
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.