campground
A lightweight command-line tool for downloading albums from your Bandcamp library.
Requirements
- Python 3.11+
- A Bandcamp account with purchased items
Installation
pip install git+https://github.com/oxfordbags/campground.git
Setup
Campground authenticates using your browser session cookies. You only need to do this once (or when your session expires).
- Log in to bandcamp.com in your browser
- Open Dev Tools (
Cmd+Option+Ion Mac,F12on Windows) - Go to the Network tab and refresh the page
- Click any
bandcamp.comrequest and find the Cookie: request header - Copy the full value
Then add it to ~/.config/campground/config.toml:
[bandcamp]
cookies = "your_cookie_string_here"
[download]
format = "flac" # optional, default: flac
output_dir = "~/Music" # optional, default: current directory
Or pass cookies directly on the command line:
campground <url> --cookies "your_cookie_string_here"
Usage
campground <bandcamp-album-url> [options]
Examples:
# Download an album in the default format (flac)
campground https://artist.bandcamp.com/album/album-title
# Choose a format
campground https://artist.bandcamp.com/album/album-title --format mp3-320
# Download to a specific directory
campground https://artist.bandcamp.com/album/album-title --output ~/Music/Bandcamp
# Re-download and replace an existing copy
campground https://artist.bandcamp.com/album/album-title --overwrite
Options
| Flag | Description |
|---|---|
-f, --format |
Audio format (see below). Default: flac |
-o, --output |
Output directory. Default: current directory |
--cookies |
Cookie string from browser dev tools |
--cookies-file |
Path to a file containing the cookie string |
--overwrite |
Replace an existing download in the output directory |
Supported formats: mp3-v0, mp3-320, flac, aac-hi, vorbis, alac, wav, aiff-lossless
How it works
Campground uses your session cookies to access the Bandcamp collection API, locates the requested album, fetches a signed download link for your chosen format, and streams the file to a temporary directory before extracting and moving it to the output directory. If anything goes wrong the temporary files are cleaned up automatically.
Metadata
Release files for campground 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| campground-0.1.3.tar.gz | 12.4 kB | With provenance | Details for campground-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| campground-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for campground-0.1.3-py3-none-any.whl |
Total release size: 26.0 kB
Release files / campground-0.1.3.tar.gz
| Download URL | campground-0.1.3.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46fc0c208d2b4c3d8eea036d1d791e77c74a364e091926e3132f8c19ba2b2ef2
|
|
BLAKE2b-256 checksum How to use checksums |
72e3669dfc6340b8443a20457b9855ffafb504d50dcd8ec52f0843bcbba626f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2026.
Transparency logRelease files / campground-0.1.3-py3-none-any.whl
| Download URL | campground-0.1.3-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a2bd76d37f7874e3a144670e1708e2030e74111ae6299959c7f049cc5ed3e08
|
|
BLAKE2b-256 checksum How to use checksums |
1db874f4f542c62206c33e2e5cc0861499bfad93c24a892408c8a6d43e073780
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2026.
Transparency logSecurity for campground 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for campground-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.