获取歌单

浏览器打开 这个链接

打开应该是一个空白页,然后打开浏览器开发者工具(Mac一般是command+shift+i,Windows一般是F12)。

然后输入如下代码 修改自(qq音乐歌单 导入 Apple Music_音乐_什么值得买 (smzdm.com)

(function () {

  // Load the script
  var script = document.createElement("script");
  script.src = 'https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js';
  script.type = 'text/javascript';

  // Set up a callback function to execute when the script is loaded
  script.onload = function () {
    // Start your code here
    var text = "";

    $.ajax({
      url: "https://c.y.qq.com/v8/fcg-bin/fcg_v8_playlist_cp.fcg?id=8207588201&cv=60102&ct=19&newsong=1&tpl=wk&g_tk=5381&loginUin=0&hostUin=0&format=json&inCharset=GB2312&outCharset=utf-8&notice=0&platform=jqspaframe.json&needNewCode=0",
      dataType: "json",
      success: function (data) {
        var songlist = data.data.cdlist[0].songlist;
        for (var i = 0; i < songlist.length; i++) {
          var tmp = songlist[i];
          text += tmp.singer[0].name + " - " + tmp.name + "<br>";
        }
        $('body').empty();
        $('body').append("<div>" + text + "</div>");
      }
    });
  };

  // Append the script to the head of the document
  document.getElementsByTagName("head")[0].appendChild(script);
})();

注意一下上面代码里面的中文书名号都是要替换的,第一个《歌单ID》 替换成你要导入的歌单的ID,歌单ID获取如下图,打开你要导入的歌单页面,然后看链接。

这个几位数的数字就是歌单ID,替换上面的内容。

然后下面有还有两处书名号,都将其替换成英文的就好(直接发英文会被当成页面元素加载)。

都替换好了执行就好

把这段代码复制到开发者工具的控制台,然后按回车执行就好了。

执行后效果如图,

执行后效果

互转平台:在不同的音乐服务之间迁移播放列表 | Tune My Music