本PHP代码可解析QQ音乐vip歌曲url,需cookie版本 支持解析输出320mp3音乐文件、无损FLAC文件!
主意:源码包含CK刷新cookie长期有效!支持音质(m4a、96、128、192、ogg、320ogg、320、flac、hires、jymaster、mflac)
PHP代码:
使用方法:
1.下载源码或复制代码新建文件上传到服务器
2.访问“http(s)//你的域名/qqmusic.php”
3.调用:“http(s)//你的域名/qqmusic.php?(url或id)=(QQ音乐链接或音乐ID)” 如:http://bolgg.ilingku.com/qqmusic.php?id=001zMQr71F1Qo8&type=all
4.参数说明:
type=输出类型(all=全部格式链接|json=单歌曲json链接、text=url连接、url=歌曲301跳转)
quality=输出格式(m4a、96、128、192、ogg、320ogg、320、flac、hires、jymaster、mflac)
如:http(s)//你的域名/qqmusic.php?id=001zMQr71F1Qo8&type=json&quality=jymaster
ck抓取教程
json返回全部结果:
{
"url": {
"m4a": "https://wx.music.tc.qq.com/C2000024jrso28p8VA.m4a?fromtag=2&guid=ilingku&trace=5525f198cb633af6&uin=123456&vkey=B9611CDF0A6C39CE5D22798CE07E79C8F6A7AD52806672537A48E0EF6B5824D2F804940CC24885E02E028918360480A5507E4AC9BB70D819",
"mp3": "https://wx.music.tc.qq.com/M5000024jrso28p8VA.mp3?fromtag=4&guid=ilingku&trace=6142c7a91ee2f54f&uin=123456&vkey=590E3026E7870A270ADE64A1609FE0979C9D6058629FEED4916864A9CD6D0FEB9EE43E4ECAFDFCBE90774F04BF1DF558C96BBAAE9F74EA19",
"192": "https://wx.music.tc.qq.com/C6000024jrso28p8VA.m4a?fromtag=4&guid=ilingku&trace=20530760c8b4fb0c&uin=123456&vkey=435EF2C93F258236FFE7FF04D05B815BF6193B67DDA85626F4E72F828BEB8FA7268A7249667BAC7428CE7BD550B6E55A1E26BFE502267BE5",
"ogg": "https://wx.music.tc.qq.com/O6000024jrso28p8VA.ogg?fromtag=4&guid=ilingku&trace=1a9cf621c28821e6&uin=123456&vkey=A2BEE9D38A8F021BB6ECACB88B9B7173BD1BB9C297CBCA2BA292DA3F0DC6AE5CF4D684966696045FADF5B49B73D7DEFEA5AFB4FDDB4CEFE5",
"320": "https://wx.music.tc.qq.com/M8000024jrso28p8VA.mp3?fromtag=8&guid=ilingku&trace=2f3393d1d0df7eef&uin=123456&vkey=1BB7FCC2CDCC6DD632687DFF7EA3AB9B222B0C9C7F87AE1E51AB25AA1968E64F345895A37E67827B994A31E18954012E7A2EFBC4795FD322",
"flac": "https://wx.music.tc.qq.com/F0000024jrso28p8VA.flac?fromtag=5&guid=ilingku&trace=2d18f80bb9dc9ea7&uin=123456&vkey=D1DA62C7F1447CB8E7E2795421E16073F51EA376C413823CC81B619A934F963EFB1C3EA5452BFF0001FEA527CD5ACF8E879CF9A1191603D4",
"hires": "https://wx.music.tc.qq.com/Q000003nAlv92U3mOy.flac?guid=ilingku&vkey=CD958CC447FAD8FA4521B4B462B6640947F67B5401B45828B639BE8FE67E9AB6030056C10E714EAA65D853DBD07442ABD4E4238D04DC6309&uin=123456&fromtag=120744",
"jymaster": "https://wx.music.tc.qq.com/AI000042g8KN4aNHCD.flac?guid=ilingku&vkey=7E78A1B99A98C8313E06EF0FD9598CC82C000BAA8B82E8DBB15047E72E1D98D9A89DE4C6F2DCD160607F91538BE64ADD57AEA44A4437CF78&uin=123456&fromtag=120724",
"mflac": "https://wx.music.tc.qq.com/AIM00042g8KN4aNHCD.mflac?guid=ilingku&vkey=6CB13200F44B100CBFBB1036FE69F9AAA8EB033FB29AD26925B189778ABB1996B10642F5E2AA8BDFA1AF44A0D3A398A69A81CC8C0E67709D&uin=123456&fromtag=120734"
}
}
json返回全部结果:
{
"code": 200,
"msg": "解析成功",
"data": {
"name": "夜曲",
"singer": "周杰伦",
"album": "十一月的萧邦",
"quality": "臻品母带2.0",
"interval": "3分46秒",
"size": "156.89MB",
"kbps": "5811kbps",
"cover": "https://y.gtimg.cn/music/photo_new/T002R800x800M0000024bjiL2aocxT.jpg",
"url": "https://wx.music.tc.qq.com/AI000042g8KN4aNHCD.flac?guid=ilingku&vkey=7E78A1B99A98C8313E06EF0FD9598CC82C000BAA8B82E8DBB15047E72E1D98D9A89DE4C6F2DCD160607F91538BE64ADD57AEA44A4437CF78&uin=123456&fromtag=120724"
}
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)