- Xcode Command line tools
- Install via
xcode-select --install
- Install via
- Python 3
- Required for initial authentication (temporarily)
- A Last.fm API account
- Create one here
To compile the scrobbler and produce the macscrobble binary, run:
make buildTo use macscrobble, follow these steps to acquire a Last.fm session key:
Export the LASTFM_API_KEY and LASTFM_API_SECRET environment variables:
export LASTFM_API_KEY=your_api_key
export LASTFM_API_SECRET=your_api_secret
Please authorize the application by visiting this URL: http://www.last.fm/api/auth/?api_key=abc123def456ghi789jkl012mno345pq&token=randomToken12345
Press Enter after you have authorized the token...
Session Key: sk1234567890abcdef1234567890abcdef
Export the ovbtained session key and then finally run the scrobbler:
export SESSION_KEY=sk1234567890abcdef1234567890abcdef
./macscrobble