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.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: lastfm-backup-cli-0.1.2.tar.gz
  • Upload date:
  • Size: 4.4 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.2.tar.gz
Algorithm Hash digest
SHA256 14c0e66b6f7ac0a0b80dec4e01e47cca6b711a9c81395fc5136033484cd4a520
MD5 ed57cd1f6436a2ab119c1f5207ac5b35
BLAKE2b-256 5642cc1af429e279ff95f264613d59545c98118dd1223208b6dd07f510d0791c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lastfm_backup_cli-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 697f8da52264f0e84d7d0458944a06886f332cb516333a3d002fdd0255bd8f31
MD5 2f51d454e58c52740dbe14bf37b4ff5c
BLAKE2b-256 0725b86eea2c0067ec2f04ad33516def3033dd7d1bdf59cb9801d8791227d972

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