Open now-playing Spotify song in last.fm

Hi, just wondering how to have BTT read the currently playing track in Spotify and open up a Safari tab with the track's page in last.fm?