Skip to main content

Super-simple CLI tool for backing up Last.fm scrobbling data

Project description

lastfm-backup-cli

Super-simple CLI tool for backing up Last.fm scrobbling data into CSV file

installation

  • pre-requisites: Python 3.7 or newer, pip
  • pip install --user lastfm-backup-cli
    • or python3 -m pip install --user lastfm-backup-cli if your default Python is 2.x

usage

  • get your LastFM API key here

  • run lastfm-backup <PATH TO BACKUP CSV FILE> --user <YOUR LASTFM USERNAME> --api-key <YOUR API KEY> --time-from <DATE OF FIRST SCROBBLE IN BACKUP FILE> --time-to <DATE OF LAST SCROBBLE IN BACKUP FILE>

    • example: lastfm-backup lastfm-backup-2021-01.csv --user Rezult --api-key <YOUR API KEY> --time-from 2021-01-01 --time-to 2021-01-02
  • output structure is:

<SCROBBLE DATE>,<SCROBBLE TIME (UTC)>,<ARTIST>,<TITLE>
...
  • output example:
2021-04-01,10:42:53,PRO8L3M,Backstage
2021-04-01,10:39:59,PRO8L3M,Byłem tam
2021-04-01,10:34:52,Deftones,Pompeji
2021-04-01,10:30:14,Deftones,This Link Is Dead
2021-04-01,10:26:38,Deftones,Radiant City
2021-04-01,10:21:48,Deftones,Error
2021-04-01,10:17:37,Deftones,Ohms
2021-04-01,10:13:08,The Avalanches,Gold Sky
2021-04-01,10:10:49,The Avalanches,Oh the Sunn!
2021-04-01,10:07:18,The Avalanches,Overcome
2021-04-01,10:03:56,The Avalanches,Music Makes Me High
2021-04-01,09:59:34,The Avalanches,Reflecting Light
2021-04-01,09:53:43,The Avalanches,Wherever You Go

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lastfm-backup-cli-0.1.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

lastfm_backup_cli-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file lastfm-backup-cli-0.1.1.tar.gz.

File metadata

  • Download URL: lastfm-backup-cli-0.1.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-1047-azure

File hashes

Hashes for lastfm-backup-cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4412ed635c43a089b4a27730fd4b6a48e3a1d71049a2e28b3a66255eeaa7fe89
MD5 d0b6a85ac52e3953e5a43229ea5e7b93
BLAKE2b-256 5bafa0adbcf7f5f38dd192b0fc9b2c19b6af9decd444307da4acc2179745cb2f

See more details on using hashes here.

File details

Details for the file lastfm_backup_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lastfm_backup_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-1047-azure

File hashes

Hashes for lastfm_backup_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f4891207604ef918ed3edc88fce29a2c7c96d40093f5e9b6da9dbf511154fb12
MD5 7eccfe9e78de978b293ae5a492bb3aab
BLAKE2b-256 5f89305a114b24608239c060c011dfc9a3fee5ea35d592262738f07aafce0763

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page