Comments (10)
如果上面的https://www.xiami.com/api/search/searchSongs返回了下面类似的json,说明要拖动滑块验证了
{"rgv587_flag": "sm", "url": "//www.xiami.com:443/api/search/searchSongs/_____tmd_____/punish?x5secdata=5e0c8e1365474455070961b803bd560607b52cabf5960afff39b64ce58073f78cc6a2667b8d37d3ac0fea0145348a5bf661eed163a99cf1751fb1f709e65fb0b31cf95f7ddc5ef2670a8136b06517fec4a48d220684bbf472553d3763f99036445cb0ce36cef9f62cbd52852a03cf8ba461ee819ca12264cfd380e1ff9a31817a2848b4d449c2b7aca50a153317135680aac44e1363d5be2780ecd4b825fac4a285561c24df851be6d937931a9537a7b79a52a883b8d79c21b1904b01749f64fcc6a2667b8d37d3ac0fea0145348a5bf661eed163a99cf1751fb1f709e65fb0b31cf95f7ddc5ef2670a8136b06517feca63dfc152f0318820ca982ddb60788b95127ba80eadd57577355098f1203f81009490045313404a034c300f6f334c988cf8b3d6c14e48c2ab40794cc1e1a04bd43057e2edd1838e1ccc05f4f01cfb61713b9e53b3a344694df999179f2180f7b845ebbb7c256e077889b653f76774fc4c74ee8e9e999cde873522a2663ee17e879a23c364d635f7a361193b1d191cf8fed81c65bebf3b9df46dd6afed6f19989c511172488a7ed06e023d17ee8ab37200472a70ed260a9ee1c5757211a1a0d7e8f775cab5e3a5d4cfae4666a76d8e5b8aac2394d3716b150c6f90cda5cd80376ea6af5f3ebabec8c5f5ffe671fccd6ba0e9e3d43a48481ad6b073ea91de19906a9e17ff8efdb48c5899d5b814e620a3843ec3ac86dd13a972b58f1da8ebeca7065887a2613ff642556139fc117b3adfc79e461efe856d8a160e43f3b6a62849d7df418c10e80ffc20e88a32e62ddb76517d4550d2c634df14e22c1039fb670a57da6c243f54879385558c0307597bc9d64a39247178e81a071778c2a9483394085c17ff4ec23e4e20f198baf211a0284&x5step=2"}
from music-dl.
API可以参考这个项目https://github.com/maicong/music,移动端的API应该好调用一些
from music-dl.
我试了一下上面这个项目的请求方式,结果也是返回出验证码的那个json,然后就不知道调哪里了.按照https://www.xiami.com/api/search/searchSongs这个,需要先访问www.xiami.com得到cookie后再访问。试了一下可以获得正确的json,问题是等于多访问了一次。
from music-dl.
试了一下,确实是这样,应该是虾米更新了策略。
感谢提供的信息,非常有帮助~
from music-dl.
貌似虾米所有api都多了这个_s……
from music-dl.
还有问题是不是没版权的都不能去下载?
比如可以通过https://www.xiami.com/api/song/getPlayInfo获得到返回中json里的lisenFile,这个就是在线听的下载地址
from music-dl.
对的,没版权的下载不了,有些音乐源没版权的结果就不返回了,虾米返回结果但是没有下载地址
from music-dl.
明白了。可怜现在都是版权的多-︵-
from music-dl.
对,这也是开发这个工具的主要目的,各个音乐源之间互补,不用一个个去网站找了
from music-dl.
已经支持虾米音乐搜索和下载,感谢提供的信息
from music-dl.
Related Issues (20)
- [BUG]网易云长歌单列表不全 HOT 5
- [Feature] 支持51ape
- [BUG]TypeError: __init__() got an unexpected keyword argument 'keyword'
- [BUG]智障网易云歌单无法抓取 HOT 2
- [BUG]
- [BUG] 输入获取的歌曲序号后, 未能进行下载. HOT 4
- [BUG]Pip 安装提示需要C++14.0以上生成工具
- [Feature]可以使用python代码调用的方式,而不是命令行的方式吗
- [Feature]能否只支持下载歌词,不下载歌曲
- [BUG]
- [Feature]请问如何在python中直接调用?
- 太赞了,好用
- 网易云的部分歌下载失败
- musicdl
- [BUG]
- [BUG] invalid literal for int() with base 10
- QQ音乐多数歌曲无法下载 HOT 2
- [BUG] --version选项错误
- 【原理上的小疑惑】如何下载专辑图至音频文件 HOT 3
- [BUG] @KUGOU is not available. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from music-dl.