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

python3 执行music.v2.py #6

Open
xietao1233 opened this issue Dec 26, 2019 · 0 comments
Open

python3 执行music.v2.py #6

xietao1233 opened this issue Dec 26, 2019 · 0 comments

Comments

@xietao1233
Copy link

输入数字,1歌单、2单曲:2
输入qq歌曲id例如 002u0fTY2HoJJp :002krvKI4Jgvq9
Traceback (most recent call last):
File "/home/taoism/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/home/taoism/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 343, in _make_request
self._validate_conn(conn)
File "/home/taoism/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 839, in _validate_conn
conn.connect()
File "/home/taoism/.local/lib/python3.6/site-packages/urllib3/connection.py", line 364, in connect
_match_hostname(cert, self.assert_hostname or server_hostname)
File "/home/taoism/.local/lib/python3.6/site-packages/urllib3/connection.py", line 374, in _match_hostname
match_hostname(cert, asserted_hostname)
File "/usr/lib/python3.6/ssl.py", line 331, in match_hostname
% (hostname, dnsnames[0]))
ssl.CertificateError: hostname 'api.itooi.cn' doesn't match 'api.hibai.cn'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/taoism/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/home/taoism/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/taoism/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.itooi.cn', port=443): Max retries exceeded with url: /music/tencent/song?key=579621905&id=002krvKI4Jgvq9 (Caused by SSLError(CertificateError("hostname 'api.itooi.cn' doesn't match 'api.hibai.cn'",),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./music.v2.py", line 107, in
r = requests.get(song_url + m_id)
File "/home/taoism/.local/lib/python3.6/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/home/taoism/.local/lib/python3.6/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/home/taoism/.local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/home/taoism/.local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/home/taoism/.local/lib/python3.6/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.itooi.cn', port=443): Max retries exceeded with url: /music/tencent/song?key=579621905&id=002krvKI4Jgvq9 (Caused by SSLError(CertificateError("hostname 'api.itooi.cn' doesn't match 'api.hibai.cn'",),))
taoism@LAPTOP-PSPLU4QL:~/src/git/qq_music_downloader$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant