Skip to content

An API to translate encrypted song information from NetEase Music and scrobble it to various services.

Notifications You must be signed in to change notification settings

PorridgePi/NetEaseMusic-Scrobbler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetEase Music Scrobbler

An API built with FastAPI to translate encrypted song information from NetEase Music and scrobble it to various services.

Requirements

  • Bare-metal: Python 3
  • Containerised: Docker

Usage

Using Docker Compose (Recommended)

  1. Clone the repository
git clone https://github.com/PorridgePi/NetEaseMusic-Scrobbler
  1. Copy .env.example to .env and fill in the required information
  2. Build the image and run the container
docker-compose up --build
  1. API up at http://localhost:8888

Using Docker

  1. Clone the repository
git clone https://github.com/PorridgePi/NetEaseMusic-Scrobbler
  1. Copy .env.example to .env and fill in the required information
  2. Build the image
docker build -t netease-music-scrobbler .
  1. Run the container
docker run -p 8888:80 --env-file .env netease-music-scrobbler
  1. API up at http://localhost:8888

Bare-metal Python

  1. Clone the repository
git clone https://github.com/PorridgePi/NetEaseMusic-Scrobbler
  1. Copy .env.example to .env and fill in the required information
  2. Set up a virtual environment
python -m venv venv
  1. Activate virtual environment
source venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Run the server
fastapi run app/main.py --port 8888
  1. API up at http://localhost:8888

API Endpoints

A general overview of the endpoints is available below.

Alternatively, uncomment this line in compose.yml:

    # - IS_FASTAPI_DEBUG=true`

Then, restart the container and visit http://localhost:8888/docs for a more interactive documentation page (thanks to FastAPI).

Scrobble

  • Method: POST
  • Path: /scrobble
  • JSON Body Structure:
Key Type Description
id Integer Song ID from NetEase Music

Encrypted Scrobble

  • Method: POST
  • Path: /encrypted_scrobble
  • JSON Body Structure:
Key Type Description
encrypted String Encrypted params parameter from NetEase Music API requests

About

An API to translate encrypted song information from NetEase Music and scrobble it to various services.

Topics

Resources

Stars

Watchers

Forks