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 youtube videos #1170

Closed
ledzepi11in opened this issue Aug 2, 2013 · 2 comments
Closed

Unable to download youtube videos #1170

ledzepi11in opened this issue Aug 2, 2013 · 2 comments

Comments

@ledzepi11in
Copy link

@ledzepi11in ledzepi11in commented Aug 2, 2013

I have the latest version yet i keep getting this error whenever i try to download a video from youtube.

d:\Twitch>youtube-dl.py http://www.youtube.com/watch?v=Nw3bW2qQTRs --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/watch?v=Nw3bW2qQTRs', '--ver
bose']
[debug] youtube-dl version 2013.08.02
[debug] Python version 3.3.2 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube] Setting language
WARNING: unable to set language: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed (_ssl.c:547)>
[youtube] Nw3bW2qQTRs: Downloading video webpage
ERROR: Unable to download video webpage: <urlopen error [SSL: CERTIFICATE_VERIFY
_FAILED] certificate verify failed (_ssl.c:547)>
Traceback (most recent call last):
File "D:\Python\lib\urllib\request.py", line 1248, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "D:\Python\lib\http\client.py", line 1061, in request
self._send_request(method, url, body, headers)
File "D:\Python\lib\http\client.py", line 1099, in _send_request
self.endheaders(body)
File "D:\Python\lib\http\client.py", line 1057, in endheaders
self._send_output(message_body)
File "D:\Python\lib\http\client.py", line 902, in _send_output
self.send(msg)
File "D:\Python\lib\http\client.py", line 840, in send
self.connect()
File "D:\Python\lib\http\client.py", line 1202, in connect
server_hostname=server_hostname)
File "D:\Python\lib\ssl.py", line 210, in wrap_socket
_context=self)
File "D:\Python\lib\ssl.py", line 310, in init
raise x
File "D:\Python\lib\ssl.py", line 306, in init
self.do_handshake()
File "D:\Python\lib\ssl.py", line 513, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c
:547)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Twitch\youtube-dl.py\youtube_dl\extractor\youtube.py", line 548, in _
real_extract
video_webpage_bytes = compat_urllib_request.urlopen(request).read()
File "D:\Python\lib\urllib\request.py", line 156, in urlopen
return opener.open(url, data, timeout)
File "D:\Python\lib\urllib\request.py", line 469, in open
response = self._open(req, data)
File "D:\Python\lib\urllib\request.py", line 487, in _open
'_open', req)
File "D:\Python\lib\urllib\request.py", line 447, in _call_chain
result = func(*args)
File "D:\Python\lib\urllib\request.py", line 1283, in https_open
context=self._context, check_hostname=self._check_hostname)
File "D:\Python\lib\urllib\request.py", line 1251, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certifica
te verify failed (_ssl.c:547)>
Traceback (most recent call last):
File "D:\Python\lib\urllib\request.py", line 1248, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "D:\Python\lib\http\client.py", line 1061, in request
self._send_request(method, url, body, headers)
File "D:\Python\lib\http\client.py", line 1099, in _send_request
self.endheaders(body)
File "D:\Python\lib\http\client.py", line 1057, in endheaders
self._send_output(message_body)
File "D:\Python\lib\http\client.py", line 902, in _send_output
self.send(msg)
File "D:\Python\lib\http\client.py", line 840, in send
self.connect()
File "D:\Python\lib\http\client.py", line 1202, in connect
server_hostname=server_hostname)
File "D:\Python\lib\ssl.py", line 210, in wrap_socket
_context=self)
File "D:\Python\lib\ssl.py", line 310, in init
raise x
File "D:\Python\lib\ssl.py", line 306, in init
self.do_handshake()
File "D:\Python\lib\ssl.py", line 513, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c
:547)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Twitch\youtube-dl.py\youtube_dl\extractor\youtube.py", line 548, in _
real_extract
video_webpage_bytes = compat_urllib_request.urlopen(request).read()
File "D:\Python\lib\urllib\request.py", line 156, in urlopen
return opener.open(url, data, timeout)
File "D:\Python\lib\urllib\request.py", line 469, in open
response = self._open(req, data)
File "D:\Python\lib\urllib\request.py", line 487, in _open
'_open', req)
File "D:\Python\lib\urllib\request.py", line 447, in _call_chain
result = func(*args)
File "D:\Python\lib\urllib\request.py", line 1283, in https_open
context=self._context, check_hostname=self._check_hostname)
File "D:\Python\lib\urllib\request.py", line 1251, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certifica
te verify failed (_ssl.c:547)>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Twitch\youtube-dl.py\youtube_dl\YoutubeDL.py", line 312, in extract_i
nfo
ie_result = ie.extract(url)
File "D:\Twitch\youtube-dl.py\youtube_dl\extractor\common.py", line 96, in ext
ract
return self._real_extract(url)
File "D:\Twitch\youtube-dl.py\youtube_dl\extractor\youtube.py", line 550, in _
real_extract
raise ExtractorError(u'Unable to download video webpage: %s' % compat_str(er
r))
youtube_dl.utils.ExtractorError: Unable to download video webpage: <urlopen erro
r [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:547)>

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 2, 2013

Thanks for the report, the issue is the same as #883.
Until it's fixed there are two solutions: use python 2.7 or add the --no-check-certificate to the command (you can add it in the configuration file to use it always)..

@jaimeMF jaimeMF closed this Aug 2, 2013
@ledzepi11in
Copy link
Author

@ledzepi11in ledzepi11in commented Aug 2, 2013

Thanks. The --no-check-certificate fixed it.

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.