ligongcheng / qq_music_downloader Goto Github PK
View Code? Open in Web Editor NEW用来下载qq音乐无损资源的小工具
用来下载qq音乐无损资源的小工具
Hello I'm back and this time using a VPN like you suggested.
Using the V2 script resulted in a timeout error.
Here is the log:
输入数字,1歌单、2单曲:2
输入qq歌曲id例如 002u0fTY2HoJJp :003cEz0o0ogtT4
timeout retry
timeout retry
timeout retry
timeout retry
timeout retry
error Again
Traceback (most recent call last):
File "music.v2.py", line 116, in
save_song(url, singer, name, lrc)
File "music.v2.py", line 31, in save_song
if resource.status_code != 200:
AttributeError: 'NoneType' object has no attribute 'status_code'
Same when running python2 and 3
Running v2.
python2 output:
Traceback (most recent call last):
File "music.v2.py", line 81, in
r = requests.get(api_url + m_id)
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.bzqll.com', port=443): Max retries exceeded with url: /music/tencent/songList?key=579621905&id=6759909648 (Caused by SSLError(CertificateError("hostname 'api.bzqll.com' doesn't match 'api.hibai.cn'",),))
python3 output:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 597, in urlopen
self._prepare_proxy(conn)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 807, in _prepare_proxy
conn.connect()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 390, in connect
_match_hostname(cert, self.assert_hostname or server_hostname)
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 400, in _match_hostname
match_hostname(cert, asserted_hostname)
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 338, in match_hostname
% (hostname, dnsnames[0]))
ssl.SSLCertVerificationError: ("hostname 'api.bzqll.com' doesn't match 'api.hibai.cn'",)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.bzqll.com', port=443): Max retries exceeded with url: /music/tencent/songList?key=579621905&id=4121058857 (Caused by SSLError(SSLCertVerificationError("hostname 'api.bzqll.com' 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 81, in
r = requests.get(api_url + m_id)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.bzqll.com', port=443): Max retries exceeded with url: /music/tencent/songList?key=579621905&id=4121058857 (Caused by SSLError(SSLCertVerificationError("hostname 'api.bzqll.com' doesn't match 'api.hibai.cn'")))
虽然峰值速度挺高,但是有些歌曲下载速度慢,能不能考虑多首歌曲并发下载?
Hi I don't know Chinese but i get an error when running the python script.
"获取key失败,正在退出。。。"
I understand that it failed to get the kay.
Anything I can do to fix this?
You can answer in Chinese obviously.
链接不对了
好像过完歌单之后就直接停止了。。或者超时
输入数字,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$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.