Posted By

Sn0opy on 01/24/11


curl Bash lastfm scrobble

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Fetch song from bash

 / Published in: Bash

This script fetches the current playing song of user XY

  1. curl -s$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.