Get lyrics from Apple Music
- dotenv 0.15
- fancy-regex 0.13
- quick-xml 0.31
- reqwest 0.12.2
- serde 1.0.197
- serde_json 1.0.115
- tokio 1.36
Run the command to start the simulation
cargo run
If you are running it for the first time, you will be prompted to enter your Apple Music user token. The token will be saved in the .env file, giving you the flexibility to edit it at any time.
- Log in to your Apple ID on the Apple Music Web platform.
- Access the Network Inspector within your browser.
- Reload the page.
- Locate the Info file.
- The user token can be found in the
Media-User-Token
header.
{
"lines": [
{
"begin": "string",
"end": "string",
"words": [
{
"begin": "string",
"end": "string",
"text": "string"
}
],
"background": [
"words": [
{
"begin": "string",
"end": "string",
"text": "string"
}
],
]
}
]
}