This page describes a Firefox Greasemonkey script for downloading your Last.fm list of loved tracks.

Last.fm already provides an API through which you can download your loved tracks and a RSS feed, but these both support only downloading the last 50 loved tracks.

How it works: once enabled, the Greasemonkey script will wake up when you visit a user's Loved Tracks list. It will remember all the entries it sees, and you can view a list of those songs in CSV format by visiting the control page (see below). Greasemonkey will fill a text box will the CSV contents that you can copy-paste, and do what your heart pleases with it.

To install Greasemonkey: https://addons.mozilla.org/en-US/firefox/addon/748

To install the script described above: http://patraulea.com/gm/lastfm_scrape_loved_tracks.user.js

To view the accumulated songs, visit: http://patraulea.com/gm/scrapecfg.html

The script will not collect duplicates even if you visit the same page twice. After loving some more tracks, just visit the Loved Tracks first page (or first few pages, as needed) again.