Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Importing first and last played data from last.fm's JSON export (Read 4748 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Importing first and last played data from last.fm's JSON export

It's a little-known feature of last.fm that you can export the entirety of the data that they have collected from here:

http://www.last.fm/settings/dataexporter

This also includes information that's not easy to reach in any other way (by which I mean it can't be reached through API), like first played and last played dates. I had previously imported this data thru a WSH Panel Mod script made specially for that purpose by marc2003, but I have since lost that data (again... sigh... computers...), so I'd like to do it again. That script is no longer available (and even if it was I'd feel kinda iffy about using it because marc stopped supplying/supporting his scripts and I respect that decision), so I'm making a new thread for this.

I know it's a long shot, but if anyone wants to try to make a script that imports that data either into the playcount database or into customdb or anything else, I'd be very grateful!

 

Importing first and last played data from last.fm's JSON export

Reply #1
i wouldn't mind people sharing this script as it only works on local files and doesn't use the internet. if no one else has a copy, i could knock it up again if you upload a sample JSON file.

Importing first and last played data from last.fm's JSON export

Reply #2
i wouldn't mind people sharing this script as it only works on local files and doesn't use the internet. if no one else has a copy, i could knock it up again if you upload a sample JSON file.

I have fist/last played data since i started using play count but this would be very nice
Did you mean JSON files in \json\scrobbles folder?
here it is:
JSON file

Importing first and last played data from last.fm's JSON export

Reply #3
Thank you marc2003! I always took advantage of your hard work, so I hope you know that I'm very grateful for everything you've done for foobar in these years!

Let me know if you need me to upload anything. I'll also upload the first file from the JSON\scrobbles folder: https://dl.dropboxusercontent.com/u/116911/...es-2005-02.json


Importing first and last played data from last.fm's JSON export

Reply #5
Thanks man! I really appreciate it, I'll make sure to save it this time!

Importing first and last played data from last.fm's JSON export

Reply #6
Two questions.

1. Does this script still work after the Last.fm changes?

2. How do I get the JSON scrobbles files?

Importing first and last played data from last.fm's JSON export

Reply #7
i'd say there is pretty much zero chance of getting that data from last.fm now. they've stripped away or broken most of the functionality that was on the previous site and i honestly can't see much of it making a return.

Importing first and last played data from last.fm's JSON export

Reply #8
Typical :/ good thing I saved the JSON export, though it will become increasingly outdated.

Importing first and last played data from last.fm's JSON export

Reply #9
i thought from the first time i posted this script, you were going to use it in combination with playback statistics?

http://www.hydrogenaud.io/forums/index.php...st&p=852580

Importing first and last played data from last.fm's JSON export

Reply #10
Yeah I am doing that, it works great! I lost that data when I made this thread so if that happens again, I would be out of luck (but since I backed up the export, it should be at least somewhat fine). I realize now that my previous post was worded in a really awkward way--I meant that the export itself would become outdated, not my statistics.