Giter VIP home page Giter VIP logo

gooseeker's Introduction

网易云音乐music(仅供学习使用)

music-preview

windows64:redis下载地址

项目启动

 
   npm run server
   

项目部署


	使用wss建立websoket时需要注意:
    nginx需要配置:(或者查看https://github.com/manydots/node)

	location / {
	  ...
	  proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "Upgrade";
      ...
    }

API调用限制

 	
 	express-rate-limit:访问限制20s内60次
 	apicache:缓存3s

music文档说明

	
	const hostname = "https://music.jeeas.cn/";
	const version = "/v1";
	const getApi = hostname + version;
			
		以get方式请求

		1、搜索歌曲名 params[s=歌曲名,type,offset,limit]
		  getApi/search?s=歌曲名

		2、单曲播放地址 params[id=歌曲id,br]
		  getApi/music/url?id=25643093

		3、歌词 params[id]
		  getApi/lyric?id=25643093
		
		4、单曲详情 params[id]
		  getApi/music/detail?id=25643093

		5、专辑详情 params[id] 
		  getApi/album/detail?id=2263164

		6、歌单类型列表 params[]
		  getApi/playlist/catlist
		
		7、歌单类型列表-热门类型 params[] 
		  getApi/playlist/hot
		
		8、推荐新音乐 params[] 
		  getApi/personalized/newsong

		9、搜索hot params[]
		  getApi/search/hot

		10、推荐歌单 params[] 
		  getApi/personalized

更新

 	
 	1、socket.io:向首页推送API调用数据
 	2、redis:将API调用数据存入redis中
 	3、新增soket.io调用API示例
 	4、新增doT.js模板
 	5、新增简单分页
 	

参考项目

	
	https://github.com/sqaiyan/netmusic-node
    https://github.com/Binaryify/NeteaseCloudMusicApi

gooseeker's People

Contributors

manydots avatar

Stargazers

E71OIZ avatar  avatar luoqiz avatar

Watchers

James Cloos avatar  avatar

Forkers

melodyjerry

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.