Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kerollmops/discogs2csv
Converts a Discogs releases dump into a CSV
https://github.com/kerollmops/discogs2csv
csv discogs discogs-dump
Last synced: 22 days ago
JSON representation
Converts a Discogs releases dump into a CSV
- Host: GitHub
- URL: https://github.com/kerollmops/discogs2csv
- Owner: Kerollmops
- License: mit
- Created: 2020-03-08T12:19:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-06T19:04:21.000Z (almost 2 years ago)
- Last Synced: 2025-01-02T20:57:55.584Z (23 days ago)
- Topics: csv, discogs, discogs-dump
- Language: Rust
- Homepage:
- Size: 19.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discogs2csv
An little tool that converts [a Discogs release XML dump](https://data.discogs.com/) into a CSV.
## Installation
```bash
cargo install discogs2csv
```## Usage
First download a release dump from the Discogs website:
```bash
curl -O 'https://discogs-data-dumps.s3-us-west-2.amazonaws.com/data/2023/discogs_20230301_releases.xml.gz'
```Then simply feed it to the `discogs2csv` command:
```bash
gunzip --stdout discogs_20230301_releases.xml.gz | discogs2csv > tracks.csv
```Optionally you could convert this CSV into a typed JSON-line:
```bash
cargo install csv2ndjson-lite
cat tracks.csv | csv2ndjson-lite --arrays genre --numbers id released-timestamp duration-float > tracks.ndjson
```