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

网易云不可用的bug #20

Open
bjfrbjx opened this issue Apr 14, 2023 · 0 comments
Open

网易云不可用的bug #20

bjfrbjx opened this issue Apr 14, 2023 · 0 comments

Comments

@bjfrbjx
Copy link

bjfrbjx commented Apr 14, 2023

因为网易云加了一个验证,没有header的请求被拒了。
解决很简单,song_player.py的__random_song方法,添加header
response = requests.request("GET", url,headers={ 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.39'})

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