README.md (738B)
1 # lastfm_rs 2 3 Exports Last.fm scrobbles to a CSV file. Output format is compatible with [Maloja](https://github.com/krateng/maloja). 4 5 ## Building 6 7 ```sh 8 cargo build --release 9 ``` 10 11 ## Usage 12 13 ```sh 14 lastfm_rs --username <user> --api-key <key> [options] 15 ``` 16 17 ### Options 18 19 | Flag | Default | Description | 20 |------|---------|-------------| 21 | `-u`, `--username` | — | Last.fm username | 22 | `-a`, `--api-key` | — | Last.fm API key | 23 | `-o`, `--output` | `scrobbles.csv` | Output CSV file path | 24 | `--from` | — | Start time (Unix timestamp) | 25 | `--to` | — | End time (Unix timestamp) | 26 | `-l`, `--limit` | — | Max pages to fetch (200 tracks/page) | 27 28 ### Example 29 30 ```sh 31 lastfm_rs --username miro --api-key abc123 --output scrobbles.csv 32 ```