/ Published in: Bash
This script fetches the current playing song of user XY
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
curl -s http://www.last.fm/user/$LASTFMUSER | grep -A 1 subjectCell | sed -e 's#<[^>]*>##g' | head -n2 | tail -n1 | sed 's/^[[:space:]]*//g'