
让音乐无界
如果你苦于挑选一个全方位、多平台、简便易用的音乐爬虫库,music-api-next是不二选择。
特性:
async/await写法webpack打包部署pm2服务器部署const musicAPI = require("music-api-next"); // 搜索接口: 返回指定关键词的搜索信息 musicAPI .searchSong({ key: "周杰伦", page: 1, limit: 10, vendor: "qq" }) .then(sOngs=> console.log(songs)) .catch(error => console.log(error.message)); // 歌曲信息接口: 返回指定歌曲的信息 musicAPI .getSong({ id: "003OUlho2HcRHC", vendor: "qq" }) .then(meta => console.log(meta)) .catch(error => console.log(error.message)); // 评论接口: 返回指定歌曲的评论 musicAPI .getComment({ id: "003OUlho2HcRHC", page: 1, limit: 20, vendor: "qq" }) .then(comments => console.log(comments)) .catch(error => console.log(error.message)); 1 ddzzhen Oct 6, 2018 via Android 支持一下 |
2 imxieke Oct 6, 2018 |
3 chungzhao Oct 7, 2018 网络真小,godbmw 大佬又遇到你了。。。。。。 |