Fetch last.fm song from bash


/ Published in: Bash
Save to your folder(s)

This script fetches the current playing song of user XY


Copy this code and paste it in your HTML
  1. curl -s http://www.last.fm/user/$LASTFMUSER | grep -A 1 subjectCell | sed -e 's#<[^>]*>##g' | head -n2 | tail -n1 | sed 's/^[[:space:]]*//g'

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.