discogs2csv

Crates.iodiscogs2csv
lib.rsdiscogs2csv
version0.1.0
sourcesrc
created_at2023-04-06 19:04:33.854095
updated_at2023-04-06 19:04:33.854095
descriptionConverts a Discogs releases dump into a CSV
homepage
repository
max_upload_size
id832423
size13,922
LV2 Maintainers (github:rustaudio:lv2-maintainers)

documentation

https://docs.rs/discogs2csv

README

Discogs2csv

An little tool that converts a Discogs release XML dump into a CSV.

Installation

cargo install discogs2csv

Usage

First download a release dump from the Discogs website:

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:

gunzip --stdout discogs_20230301_releases.xml.gz | discogs2csv > tracks.csv

Optionally you could convert this CSV into a typed JSON-line:

cargo install csv2ndjson-lite
cat tracks.csv | csv2ndjson-lite --arrays genre --numbers id released-timestamp duration-float > tracks.ndjson
Commit count: 0

cargo fmt