Posted By

Sn0opy on 01/24/11


Tagged

curl Bash lastfm scrobble


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Sn0opy


Fetch last.fm song from bash


 / Published in: Bash
 

This script fetches the current playing song of user XY

  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  

You need to login to post a comment.