Python-based version of Netease cloud music Django3.0 API

project address

https://github.com/Kevin0z0/Python_NetEaseMusicAPI

File

https://kevin0z0.github.io/mydoc/

Test links

http://music.dsb.ink/

on

This project is based on Binaryify a slightly modified version Nodejs

Just beginning to learn Django, there may be many places configuration is not in place, also requested the guidance of chiefs

Because django is not clear what potential vulnerabilities, this project does not filter any string that does not add waf, if deployed on its own cloud server, it is recommended not to use root privileges, and if people used more consideration to take a docker

Reference projects:

https://github.com/Binaryify/NeteaseCloudMusicApi

https://github.com/darknessomi/musicbox

New

Js support with direct reference to api

Example:
Request var<script src="/api/search?value=李荣浩&var=search"></script>

Variable returns

search={"result":{"songs":[{"id":1407551413,"name":"麻雀","artists":[{"id":4292,"name":"李荣浩","picUrl":null,"alias":[],"albumSize":0,...}

If the request cb <script src="/api/search?value=李荣浩&cb=search"></script>

The direct execution of the function named search (similar to Baidu's search prompts)

search({"result":{"songs":[{"id":1407551413,"name":"麻雀","artists":[{"id":4292,"name":"李荣浩",...})

Easy support logging

In the corresponding log home/login

installation

This project is based on Django3.0, only supports python3.6 and above versions run

git clone https://github.com/Kevin0z0/Python_NetEaseMusicAPI.git
cd Python_NetEaseMusicAPI
pip install -r requirements.txt

run

Before running please make sure that the python3.6, django3.0 or later installed

If it is compiled version of the python, missing sqlite3, look here https://stackoverflow.com/questions/1210664/no-module-named-sqlite3

If running locally
python manage.py runserver 8000
If you need to access external
python manage.py runserver 0:8000

8000The port number, there is a need to modify their own

Notes interface calls

Please consciously abide by laws and regulations, the project only to learn reference, all legal responsibility borne by the users themselves, have nothing to do with

The project supports GET, POST's urlencodedand jsonthe way requests, please be safe to eat (after the operation of the interface need to be logged recommended POST)

POST json embodiment of the digital data is requested class id integer and string can transmit

Interface for the json data returned all the data, if there are other strange data return, please feedback as soon as possible

Part of the interface may be a bug, please bigwigs can also put a issue

The first written document, what is not clear if we can see Binaryify Gangster document, both sides in addition to the interface inconsistencies, basically the same function

table of Contents

user

log in

Send the verification code

Verification code

Register (change your password)

Detect whether the phone number is registered

Initialization nickname

Change the phone number tied

sign out

Login status

For details

Single user song

Purchased album

Refresh

Attendance

Private FM

FM trash

Users get a list of favorite music

Obtain user information, song list, collections, mv, the number of dj

Obtain user record player

Gets a user-created radio

For details of user-created radio

Users get Watchlist

Users get fans

dynamic

Get all dynamic

Users get dynamic

Dynamic forwarding user

Delete User activity

Share songs, song single, mv, radio, radio programs to dynamic

Watch / Unfollow users

Cloud disk

Cloud disk song details

Delete cloud disk music

Set up

Update user information

Resource thumbs up (MV, radio, video)

music

Songs link

Is available (unfinished)

lyrics

Song details

Daily Recommended

Recommend new music

Similar songs

Courier song

Get recent 5 users listening to this song

Added new album

love music

Smart Play / mode echocardiography

song list

Song Coupon

Daily Recommended

Recommended song list

The song contains the song list

related suggestion

Save / Cancel Favorite song list

Single song collectors

Antiphonal singing single song to add or remove

Creating a single song

To delete a single song

Song Single Category

Popular song single classification

Song single (User Selection Disc)

Obtain quality single song

Update

Update single song

Update single song Introduction

Update single song name

Update song single label

singer

Singer singles

Artist album

Latest album

Get Album content

Album dynamic information

Favorite / unsubscribe album

Favorite Album list has been acquired

Singer Details

Singer MV

Popular singer

Obtaining similar artists

Singer category list

Favorite / unsubscribe singer

Favorite singers list

Top 50 songs singer

Singer List

search for

The default search keywords

Search Suggestions

Search multiple matches

Hot search list (abridged)

Hot Search List (detail)

Broadcasting station

Banner

Popular Radio

Popular radio category

Station details

Pay fine

program

Program details

Program list

Program 24 hours standings

24 hours anchor standings

Anchor new list

The hottest anchor standings

List budding radio / popular radio station list

Radio Classified

Featured Radio

Recommended classification

Recommended type

Popular types of non-
subscription

Subscriptions

Paid Picks

Preferred today

Recommended stations

The recommended program

MV

All MV

Latest MV

Netease Chupin MV

Recommended MV

Similar MV

MV Ranking

MV details

MV link

Favorite / unsubscribe MV

Collection of MV List

video

Get video url

Gets Video Details

Get video tag list

Get video in video tag

Related Videos

Collection and cancel Favorite Video

comment

Send / Delete / Reply to comment

Song comments

Album Reviews

Single song Comments

Radio Comments

Video Reviews

Top Comments

Dynamic comment

The thumbs up / thumbs Cancel Comments

News

Private message

Personal communication content

Send a message (plain text / song single band)

Comment Notification

I notice @

Notice

other

Get hot topic

Kumomura Lively

Banner

Germany House broadcast

Leaderboard

All list

All list summary

Released seven original articles · won praise 4 · Views 4172

Guess you like

Origin blog.csdn.net/zhang644720213/article/details/104905635