SpotAPI - Rust
A professional Rust crate that mimics the functionality of the Python SpotAPI package, specifically focused on fetching Spotify playlist metadata and tracks seamlessly handled via guest authentication.
Features
- Guest Authentication: Automatically handles guest token generation and session management.
- Playlist Fetching: Retrieval of detailed playlist metadata.
- Pagination Support: Automatically handles pagination to fetch all tracks in a playlist, regardless of size.
- Dynamic Analysis: robustly analyzes Spotify's web player to ensure compatibility with API changes.
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
Usage
Here is a simple example of how to fetch all tracks from a playlist:
use PublicPlaylist;
use Error;
async
Disclaimer
This library is intended for educational purposes. It interacts with Spotify's private API. Use responsibly and in accordance with Spotify's terms of service.