A Rust CLI tool that creates Spotify playlists from Radio Wave's daily programming. It fetches the Radio Wave playlist for a specified date and creates a corresponding Spotify playlist.
- Fetch Radio Wave playlist for a specific date
- Search for tracks on Spotify
- Automatic Spotify playlist creation
- OAuth2 authentication flow with Spotify
- Browser-based login
- Clone the repository:
git clone https://github.com/VojtaStanek/spotify_cro_playlist_creator.git
cd spotify_cro_playlist_creator
- Build the project:
cargo build --release
- Use following environment variables to configure the tool:
RSPOTIFY_CLIENT_ID=your_client_id
RSPOTIFY_CLIENT_SECRET=your_client_secret
RSPOTIFY_REDIRECT_URI=http://127.0.0.1:8888/callback
RUST_LOG=info
- Ensure you have registered your application in the Spotify Developer Dashboard and added
http://127.0.0.1:8888/callback
as a redirect URI.
Run the tool by providing a date in YYYY-MM-DD format:
spotify_cro_playlist_creator 2024-09-01
The tool will:
- Open your browser for Spotify authentication
- Fetch the Radio Wave playlist for the specified date
- Search for matching tracks on Spotify
- Create a new playlist titled "Radio Wave YYYY-MM-DD" - eg. "Radio Wave 2024-09-01"
- Add all found tracks to the playlist
The tool uses the Radio Wave API endpoint:
https://api.rozhlas.cz/data/v2/playlist/day/{year}/{month}/{day}/radiowave.json
MIT