musixmatch-inofficial (0.1.0)

Published 2024-03-23 02:51:25 +01:00 by ThetaDev

Installation

[registry]
default = "forgejo"

[registries.forgejo]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add musixmatch-inofficial@0.1.0

About this package

Inofficial client for the Musixmatch API

Musixmatch-Inofficial

This is an inofficial client for the Musixmatch API that uses the key embedded in the Musixmatch Android app.

It allows you to obtain synchronized lyrics in different formats (LRC, DFXP, JSON) for almost any song.

The Musixmatch API required a free account on https://www.musixmatch.com to be used. However, as of 2024, this requirement was removed and the API can be used anonymously. The client still allows you to supply credentials if Musixmatch decided to close the API down again.

Song lyrics are copyrighted works (just like books, poems and the songs themselves).

Musixmatch does allow its users to obtains song lyrics for private use (e.g. to enrich their music collection). But it does not allow you to publish their lyrics or use them commercially.

You will get in trouble if you use this client to create a public lyrics site/app. If you want to use Musixmatch data for this purpose, you will have to give them money (see their commercial plans) and use their official API.

Development info

The test suite reads Musixmatch credentials from the MUSIXMATCH_EMAIL and MUSIXMATCH_PASSWORD environment variables.

To make local development easier, I have included dotenvy to read the credentials from an .env file. Copy the .env.example file in the root directory, rename it to .env and fill in your credentials.

Dependencies

ID Version
base64 ^0.22.0
hmac ^0.12.1
log ^0.4.17
rand ^0.8.5
reqwest ^0.12.0
serde ^1.0
serde_json ^1.0.85
sha1 ^0.10.5
thiserror ^1.0.36
time ^0.3.15
tokio ^1.20.0
ctor ^0.2.0
dotenvy ^0.15.5
env_logger ^0.11.0
futures ^0.3.21
path_macro ^1.0.0
rstest ^0.18.0
tokio ^1.20.0

Keywords

music lyrics
Details
Cargo
2024-03-23 02:51:25 +01:00
19
ThetaDev <t.testboy@gmail.com>
MIT
23 KiB
Assets (1)
Versions (1) View all
0.1.0 2024-03-23