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

163 music requires verification #60

Open
Misaka13514 opened this issue Nov 10, 2021 · 1 comment
Open

163 music requires verification #60

Misaka13514 opened this issue Nov 10, 2021 · 1 comment

Comments

@Misaka13514
Copy link

App log

$ com.github.muriloventuroso.givemelyrics
load settings
I guess something is not working...

Network capture

$ curl -H "Host: music.163.com" --compressed "http://music.163.com/api/search/pc?offset=0&limit=1&type=1&s=(mymusic)"
{
	"code": -462,
	"data": {
		"actionCode": "1056401",
		"verifyType": 50,
		"verifyId": 1008601,
		"verifyUrl": "",
		"blockText": "绑定手机后,可进行下一步操作哦~",
		"verifyToken": null,
		"btnText": "",
		"orpheusUrl": "",
		"params": {
			"event_id": "(some_dec_numbers)",
			"sign": "(some_hex_numbers)"
		},
		"url": null
	},
	"message": "请绑定手机后再试哦~"
}
@bztd
Copy link

bztd commented Sep 1, 2024

If the request is made twice, the expected result is obtained:

curl -b cookies.txt -c cookies.txt --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0" "http://music.163.com/api/search/pc?offset=0&limit=1&type=1&s=haunted,evanescence"

The cookie that is stored:
.music.163.com TRUE / FALSE 2040483784 NMTID 00OQ4YTABC2VhXRd0Viv77MOVsXXSMAAAGRqWUuGg

The user-agent appears to be required.

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

2 participants