· 5 years ago · Dec 04, 2020, 04:46 AM
1### How to fetch any LastFM user track history without API key
2
3### Requirements:
4* Linux (tested on Manjaro, might work as well on others)
5* git (ubuntu/debian: `sudo apt install git` arch/manjaro: `sudo pacman -S git` fedora/centos: `sudo dnf install git` alpine: `apk add git`)
6* Any recent browser (Tested on Google Chrome Version 85.0.4183.121 (Official Build) (64-bit))
7
8### Process
91. Clone the benfoxall/lastfm-to-csv github repo:
10`git clone https://github.com/benfoxall/lastfm-to-csv`
112. Enter the folder:
12`cd lastfm-to-csv`
133. Open your browser with index.html:
14`google-chrome-stable index.html`
154. On the page, type-in the lastfm user name and press "Fetch tracks"
165. Wait for the fetch to complete and click on "Save"
176. Done!
18
19### Notes
20* In the HTML file (index.html) it says that ideally you'll have to use your own API key. However, I've tried with the default one and it worked flawlessly.
21* Warning: users with a lot of tracks will take a lot of time to fetch (can be several hours) and resulting file will be pretty large (might be 100 mb or more)
22* On average, 500 pages of data = ~ 5 mb file
23
24### What to do with this data?
25* Find the most frequently played tracks!
26* Build some statistics on user, it's favourite tracks or genres