Modified from reddit snippet - incomplete but now uses environment variables from a .env file for API credentials.
- Copy
.env.exampleto.env. - Fill in your Last.fm and Spotify credentials.
- Install dependencies and run:
uv sync
uv run python main.pyRequired variables:
LASTFM_API_KEYLASTFM_API_SECRETSPOTIPY_CLIENT_IDSPOTIPY_CLIENT_SECRET