Skip to content

Latest commit

 

History

History
39 lines (36 loc) · 1.33 KB

README.md

File metadata and controls

39 lines (36 loc) · 1.33 KB

LastFM-Batch-Scrobbler

A simple script that batch scrobbles Spotify Data. Can also scrobble one song.
Related: Spotify-Data-Splitter

Setup:

  1. Install python 3.8 or higher from here
  2. Install the script using git clone https://github.com/SpaghettDev/LastFM-Batch-Scrobbler or click the green download button above
  3. If you have installed using the green download button, extract the file somewhere
  4. Open your preffered shell and cd into the directory containing the project
  5. Fill the .env file with the information needed. For the API key and SECRET visit the LastFM api creation page
  6. Run pip install -r requirements.txt to install the needed dependency (pylast)

Usage:

python main.py "path/to/data.json"

and

python main.py "artist" "track" [timestamp]

eg.:

  1. Scrobbling a file
python main.py "path/to/data_split1.json"
  1. Scrobbling a single track Right Now:
python main.py "Kanye West" "No More Parties In LA"

Specific Time (date):

python main.py "Kanye West" "No More Parties In LA" 2023-08-09

Specific Time (Unix Timestamp):

python main.py "Kanye West" "No More Parties In LA" 1691586000