Skip to main content

Extract BandCamp .zip album folders to their appropriate place

Project description

Band Camp Album Extractor

This python script extracts all of the songs for a bandcamp album download.

Install

(preferred) from pip

pip install bandcamp_extract

From github repo

To install this package simply run

pip install .

in the root of this package

Usage

After installation the extrator's binary is called bcextr it can be used like so

bcextr ~/Downloads/album.zip --pattern ~/Music/{artist}/{album}/{title}

Default pattern if not provided is: ./{artist}/{album}/{title}

The pattern substitution will substitute any parameter it gets in tinytag The file extension will also be added to the end of the pattern when moving the song to it's destination

tag.album         # album as string
tag.albumartist   # album artist as string
tag.artist        # artist name as string
tag.audio_offset  # number of bytes before audio data begins
tag.bitrate       # bitrate in kBits/s
tag.comment       # file comment as string
tag.composer      # composer as string 
tag.disc          # disc number
tag.disc_total    # the total number of discs
tag.duration      # duration of the song in seconds
tag.filesize      # file size in bytes
tag.genre         # genre as string
tag.samplerate    # samples per second
tag.title         # title of the song
tag.track         # track number as string
tag.track_total   # total number of tracks as string
tag.year          # year or data as string

It is important to note that any files that are not music in the zip are not moved to the destination folder.

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

bandcamp_extract-0.1.6.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bandcamp_extract-0.1.6-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file bandcamp_extract-0.1.6.tar.gz.

File metadata

  • Download URL: bandcamp_extract-0.1.6.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bandcamp_extract-0.1.6.tar.gz
Algorithm Hash digest
SHA256 23527be9efbd4212985b5c2c534ffef9c7b77ce618840eec359cfdbc7b3b7fa4
MD5 26dd6ca9428422f955311c0a8c02314e
BLAKE2b-256 1952f019529d0da9c6cb9da3fd84b5274895e735ad36bf049dfc5587f4153656

See more details on using hashes here.

Provenance

The following attestation bundles were made for bandcamp_extract-0.1.6.tar.gz:

Publisher: release.yml on JonMontgo/bandcamp_extract

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bandcamp_extract-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for bandcamp_extract-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3c0bd7e8e1d3974c040d65bc14ffd9bb55996ea6dcb717f85d93157a8e85a96d
MD5 1838255a57b5bbeae325af026114bd7f
BLAKE2b-256 9827d84b81741b454abb82714471d8b2473709b4068ed5cdb0f99e01c49e2538

See more details on using hashes here.

Provenance

The following attestation bundles were made for bandcamp_extract-0.1.6-py3-none-any.whl:

Publisher: release.yml on JonMontgo/bandcamp_extract

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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