An open source WangY cloud music api project, enough for you to play.

Disclaimer: This article is published on the WeChat public account [Cainiao wants to fly], if there is any reprint, please indicate the source!

Yesterday I found an open source music api project on Github, restful style, Json format, the functions provided are really the most complete in history, enough for you to develop a client of your own. And the author is very considerate, in addition to open source this project also provides a detailed documentation. Share it with everyone today, and it can be regarded as finding something to play on May 1st, so that you can cheer up.

First take a look at what interface functions the project provides

This is just one of them. After reading it, do you have the urge to play a music app by yourself?

In order to ensure that the project can be used, I simply deployed the project on my own machine according to the documentation provided by the author, and the personal test can run and use normally. Let’s briefly share the process below, so that everyone can get started quickly. Although the author's documentation is very detailed, there are still some details missing for Xiaobai, so I will simply add it.

1. The project is developed using JavaScript, based on Node.js technology. Therefore, we must first build a node and npm development environment. As long as there is a Node.js operating environment, the project can be deployed on any operating system. This step is easy to search and solve by yourself. Sigh, js is really powerful, and the front-end and back-end are omnipotent.

2. Download the project source code.

3. cd to the root directory of the project and execute the npm install command. The main function of this step is to download the dependent packages required for the project to run according to the package.json file provided by the project.

4. Execute the node app.js command to start the server. The default port is 3000, as shown in the figure below

5. Interface test

http://localhost:3000/mv/url?id=5436712

Get the mv video of the song according to the id, and the access results are as follows

Let's verify the url of mv again

Perfect, I decided to write a program to download all mvs.

In addition, the author also provides another more advanced deployment method - Docker container running, and complex functions such as configuring agents, so let's study these by ourselves.

The only regret is that it does not provide background monitoring and a detailed log system. Without these two things, it is still very painful to put it into use. Or maybe I didn't find it. Capable readers can make up, and let me know by the way. Of course, you can play this kind of project by yourself, just study it, and let it be pulled down for commercial use. On the one hand, infringement, on the other hand, there will definitely be problems with limited interfaces.

last address

project address

https://github.com/Binaryify/NeteaseCloudMusicApi

Documentation

https://binaryify.github.io/NeteaseCloudMusicApi/#/

Also, it is strongly recommended that you back up the project locally to prevent it from being publicized.

Welcome to pay attention to my public account: [Rookie wants to fly], interview book, learning route, source code sharing, etc. You come to learn

Guess you like

Origin blog.csdn.net/androidstudyroom/article/details/89647220