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

.analyse module - 黑胶时光机 #1

Closed
3 tasks done
aquamarine5 opened this issue Feb 24, 2022 · 5 comments
Closed
3 tasks done

.analyse module - 黑胶时光机 #1

aquamarine5 opened this issue Feb 24, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@aquamarine5
Copy link
Owner

aquamarine5 commented Feb 24, 2022

使用cookies(NeteaseMusicConfig)访问https://music.163.com/prime/m/viptimemachine页面爬取window.__INITIAL_DATA__,有听歌总时长以及听歌次数,相较于爬取.record估算时间更加准确快速

  • type=7
  • type=4
  • type=1
@aquamarine5 aquamarine5 added the enhancement New feature or request label Feb 24, 2022
@aquamarine5
Copy link
Owner Author

本来想看看能不能钻空子免费无限试用,目前不行,总结了下现在的Api:

@aquamarine5
Copy link
Owner Author

需要挂Content-Type: application/x-www-form-urlencoded和Cookie(NeteaseMusicConfig.get_default_config().toCookie()
rowkey在https://music.163.com/prime/m/viptimemachine里面的数据有

@aquamarine5
Copy link
Owner Author

https://music.163.com/weapi/vipmusic/extend/costdetail

  • 花费一次点数查看详细报告

https://music.163.com/weapi/vipmusic/newrecord/weekdetail

  • Body: {"rowKey":"${rowKey}","userId":""}
  • Response: 当rowKey已经花费点数有查看权限会返回详细数据,没有则返回{code: 400, msg: '试用次数校验未通过',...}

https://music.163.com/weapi/vipmusic/extend/checkdetail

  • 查看rowKey对应的详细数据
  • Response: dict 含leftNum和status,当已经有权限查看时,leftNum: 0, status: 1;无权限查看时,leftNum为剩余免费查看次数, status: 2

@aquamarine5
Copy link
Owner Author

aquamarine5 commented Feb 28, 2022

type=7 available

aquamarine5 added a commit that referenced this issue Feb 28, 2022
@aquamarine5
Copy link
Owner Author

Refer #2

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

No branches or pull requests

1 participant