An API built with FastAPI to translate encrypted song information from NetEase Music and scrobble it to various services.
- Bare-metal: Python 3
- Containerised: Docker
- Clone the repository
git clone https://github.com/PorridgePi/NetEaseMusic-Scrobbler
- Copy
.env.example
to.env
and fill in the required information - Build the image and run the container
docker-compose up --build
- API up at
http://localhost:8888
- Clone the repository
git clone https://github.com/PorridgePi/NetEaseMusic-Scrobbler
- Copy
.env.example
to.env
and fill in the required information - Build the image
docker build -t netease-music-scrobbler .
- Run the container
docker run -p 8888:80 --env-file .env netease-music-scrobbler
- API up at
http://localhost:8888
- Clone the repository
git clone https://github.com/PorridgePi/NetEaseMusic-Scrobbler
- Copy
.env.example
to.env
and fill in the required information - Set up a virtual environment
python -m venv venv
- Activate virtual environment
source venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Run the server
fastapi run app/main.py --port 8888
- API up at
http://localhost:8888
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).
- Method:
POST
- Path:
/scrobble
- JSON Body Structure:
Key | Type | Description |
---|---|---|
id |
Integer | Song ID from NetEase Music |
- Method:
POST
- Path:
/encrypted_scrobble
- JSON Body Structure:
Key | Type | Description |
---|---|---|
encrypted |
String | Encrypted params parameter from NetEase Music API requests |