Created
July 26, 2011 21:38
-
-
Save jhsu/1108125 to your computer and use it in GitHub Desktop.
get recent 50 tracks of a user from last.fm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
curl -s "http://ws.audioscrobbler.com/2.0/user/$1/recenttracks.rss?limit=50" | grep -E '^\s+<title>' | sed 's/^[ \t]*<title>//;s/<\/title>[ \t]*$//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment