【文件属性】:
文件名称:bopper:解析 bop.fm url 以获取歌曲信息
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-12 15:17:18
JavaScript
波普尔
解析 bop.fm 网址以获取歌曲信息。
需要
节点.js
表示
请求, cheerio, 摩根
要安装正确的 npms:
npm install
跑步
node web.js
用法
向服务器的根发出 get 请求,使用 uri 查询参数作为 bop.fm url。
示例:
http://localhost:5000/?uri=http://bop.fm/s/the-wonder-years/there-there
将返回以下结果
{
"title": "There, There",
"artist": "The Wonder Years",
"image": "https://res.cloudinary.com/hyam10gog/image/fetch/c_fill/http://a2.mzstatic.com/us/r30/Music2/v4/1
【文件预览】:
bopper-master
----bopper.js(2KB)
----.travis.yml(49B)
----test()
--------bopper.js(2KB)
----Procfile(17B)
----README.md(709B)
----web.js(867B)
----.gitignore(460B)
----package.json(420B)