- create an api app at https://www.last.fm/api/accounts
- create a .env file and fill out the data as specified below
API_KEY=[LAST FM API KEY]
API_SECRET=[LAST FM SHARED SECRET]
USERNAME=[LAST FM USERNAME]
PASSWORD=[LAST FM PASSWORD (must be plaintext)]
- copy all your
Streaming_History_Audio_YEAR-YEAR_INDEX.json
files into a new folder called data - create a new folder called blocks (dont put anything there)
- run
mergeFiles.py
- ensure that it creates a
data.json
file in the main folder - run
splitFile.py
to split it into 2800 song 'blocks' (last fm scrobble limit per day) - make sure you have pylast installed, run
pip install pylast
if you dont - run
scrobble.py
(you will have to run it multiple times as it only scrobbles one 'block' at a time)
please open any issues if theres problems with it !!! i will try my best to fix stuff (within reason)