• Stars
    star
    945
  • Rank 48,368 (Top 1.0 %)
  • Language
    Python
  • License
    The Unlicense
  • Created over 11 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple python script to download Bandcamp albums

bandcamp-dl

download audio from BandCamp.com

Synopsis

bandcamp-dl URL

Installation

From PyPI

pip3 install bandcamp-downloader

Some linux distros may require that python3-pip is installed first.

From Wheel

  1. Download the wheel (.whl) from PyPI or the Releases page
  2. cd to the directory containing the .whl file
  3. pip install <filename>.whl

[OSX] From Homebrew

brew install bandcamp-dl

[Arch] From the AUR

yay -S bandcamp-dl-git

From Source

  1. Clone the project or download and extract the zip
  2. cd to the project directory containing the setup.py
  3. python setup.py install

Description

bandcamp-dl is a small command-line app to download audio from BandCamp.com. It requires the Python interpreter, version 3.4 (or higher) and is not platform specific. It is released to the public domain, which means you can modify it, redistribute it or use it how ever you like.

Details

Usage:
    bandcamp-dl [options] [URL]

Arguments:
    URL         Bandcamp album/track URL

Options

Options:
    -h --help               Show this screen.
    -v --version            Show version.
    -d --debug              Verbose logging.
    --artist=<artist>       The artist's slug (from the URL, --track or --album is required)
    --track=<track>         The track's slug (from the URL, for use with --artist)
    --album=<album>         The album's slug (from the URL, for use with --artist)
    --template=<template>   Output filename template.
                            [default: %{artist}/%{album}/%{track} - %{title}]
    --base-dir=<dir>        Base location of which all files are downloaded.
    -f --full-album         Download only if all tracks are available.
    -o --overwrite          Overwrite tracks that already exist. Default is False.
    -n --no-art             Skip grabbing album art.
    -e --embed-lyrics       Embed track lyrics (If available)
    -g --group              Use album/track Label as iTunes grouping.
    -r --embed-art          Embed album art (If available)
    -y --no-slugify         Disable slugification of track, album, and artist names.
    -c --ok-chars=<chars>   Specify allowed chars in slugify.
                            [default: -_~]
    -s --space-char=<char>  Specify the char to use in place of spaces.
                            [default: -]
    -a --ascii-only         Only allow ASCII chars (εŒ—δΊ¬ (capital of china) -> bei-jing-capital-of-china)
    -k --keep-spaces        Retain whitespace in filenames
    -u --keep-upper         Retain uppercase letters in filenames

Filename Template

The --template option allows users to indicate a template for the output file names and directories. Templates can be built using special tokens with the format of %{artist}. Here is a list of allowed tokens:

  • trackartist: The artist name.
  • artist: The album artist name.
  • album: The album name.
  • track: The track number.
  • title: The track title.
  • date: The album date.
  • label: The album label.

The default template is: %{artist}/%{album}/%{track} - %{title}.

Bugs

Bugs should be reported here. Please include the URL and/or options used as well as the output when using the --debug option.

For discussions, join us in Discord.

When you submit a request, please re-read it once to avoid a couple of mistakes (you can and should use this as a checklist):

Are you using the latest version?

This should report that you're up-to-date. About 20% of the reports we receive are already fixed, but people are using outdated versions. This goes for feature requests as well.

Is the issue already documented?

Make sure that someone has not already opened the issue you're trying to open. Search at the top of the window or at Issues. If there is an issue, feel free to write something along the lines of "This affects me as well, with version 2015.01.01. Here is some more information on the issue: ...". While some issues may be old, a new post into them often spurs rapid activity.

Why are existing options not enough?

Before requesting a new feature, please have a quick peek at the list of supported options. Many feature requests are for features that actually exist already! Please, absolutely do show off your work in the issue report and detail how the existing similar options do not solve your problem.

Does the issue involve one problem, and one problem only?

Some of our users seem to think there is a limit of issues they can or should open. There is no limit of issues they can or should open. While it may seem appealing to be able to dump all your issues into one ticket, that means that someone who solves one of your issues cannot mark the issue as closed. Typically, reporting a bunch of issues leads to the ticket lingering since nobody wants to attack that behemoth, until someone mercifully splits the issue into multiple ones.

Is anyone going to need the feature?

Only post features that you (or an incapable friend you can personally talk to) require. Do not post features because they seem like a good idea. If they are really useful, they will be requested by someone who requires them.

Is your question about bandcamp-dl?

It may sound strange, but some bug reports we receive are completely unrelated to bandcamp-dl and relate to a different or even the reporter's own application. Please make sure that you are actually using bandcamp-dl. If you are using a UI for bandcamp-dl, report the bug to the maintainer of the actual application providing the UI. On the other hand, if your UI for bandcamp-dl fails in some way you believe is related to bandcamp-dl, by all means, go ahead and report the bug.

Dependencies

  • BeautifulSoup4 - HTML Parsing
  • Demjson- JavaScript dict to JSON conversion
  • Mutagen - ID3 Encoding
  • Requests - for retrieving the HTML
  • Unicode-Slugify - A slug generator that turns strings into unicode slugs.
  • Chardet - Character encoding detection
  • Docopt - CLI help
  • Six - Python 2-3 compatibility
  • Unidecode - ASCII representation of Unicode text
  • Mock - Library for Python unit testing
  • PBR - Setuptools injection library required by Mock

Copyright

bandcamp-dl is released into the public domain by the copyright holders

This README file was inspired by the youtube-dl docs and is likewise released into the public domain.

More Repositories

1

speakers-who-want-a-platform

A directory of underrepresented speakers for Q&A panels/conferences/events. No more excuses.
436
star
2

facebook-page-unliker

EmberJS app for easily listing a user's liked Facebook pages for removal.
JavaScript
123
star
3

go-grpc-graphql-simple-example

Just a simple example of gRPC + GraphQL + Go.
Go
73
star
4

go-electron-grpc

A proof of concept for using Electron with gRPC
JavaScript
54
star
5

django-react-redux-users-tutorial

User Registration and Authentication with Django, Django Rest Framework, React, and Redux.
Python
26
star
6

go-vue-todo

A simple todo app built with Go, BoltDB, and Vue.js
JavaScript
24
star
7

ember-cli-deploy-digitalocean

Deploy your FastBoot Ember applications to DigitalOcean droplets. www.digitalocean.com
JavaScript
22
star
8

twitter-muter

Chrome Extension for muting tweets on your Twitter timeline by keywords/hashtag
JavaScript
19
star
9

simple-canary

Simple Canary Testing Framework
Go
18
star
10

dotfiles

My dotfile configurations.
Shell
13
star
11

go-vue-statik

Packaging a serving up a Vue.js application via Go and Statik
JavaScript
10
star
12

slash-switch

Dumb little Slack command to tell you how much longer until the Switch is released. >.>
Go
7
star
13

licensed-action

A GitHub Action for checking your open-source licenses.
Shell
7
star
14

bandcamp-go

A Go program for downloading Bandcamp songs
Go
7
star
15

prisma-planetscale-playground

Playground for Prisma and PlanetScale
TypeScript
7
star
16

ClassSearch

A re-implementation/bettering of Notre Dame's Class Search interface.
JavaScript
6
star
17

grpc-phonebook

Example application for my talk, building a Node.js CLI that talks to a Go gRPC service.
JavaScript
5
star
18

go-tracing-example

A simple tracing example using Go, gRPC, and Jaeger
Go
4
star
19

class-search-server

API for Notre Dame Class Search application, written with Elixir + Phoenix.
Elixir
4
star
20

otter-swag-rust

A rewrite of Otter Swag using Rust
Rust
3
star
21

iheanyi.github.io

2015 version of my website.
CSS
3
star
22

fade-pics

Fading Picture Meme Generator
JavaScript
3
star
23

hello-ember

Repository for Egghead series around Ember.js
JavaScript
3
star
24

EasyCustomView

Android library for easily creating TextViews/Buttons that implement a custom Typeface, allows for setting of the typeface in the XML.
Java
2
star
25

iheanyi-2014

GitHub repository for my personal website.
CSS
2
star
26

go-tweets

Hopefully gonna get some good data visualizations with Twitter and GoLang.
Go
2
star
27

go-subdomains-example

An example for serving up different things based on subdomain.
Go
1
star
28

otter-swag

Otter Swag, game made for Fund. Comp II at ND
C++
1
star
29

school_code

Just my code that I wrote during my time in undergrad so I don't forget about it.
Jupyter Notebook
1
star
30

Mandelbrot

Mandelbrot CSE30341, for sharing with Bartlett
C
1
star
31

who_borrowed

Keep track of your belongings
Ruby
1
star
32

class-search-go

Project for parsing Notre Dame's Class Search and textbook Information and all that in Go
Go
1
star
33

class_parser_elixir

Parsing Notre Dame's new Class Search API using Elixir.
Elixir
1
star
34

friendly-spoon

Shell
1
star
35

guessify

Haxxin'
JavaScript
1
star
36

barbr-api

Back-end for the Barbr API
JavaScript
1
star
37

Audite

Final Project for Programming Paradigms with Taylor Seale, music streaming application.
Python
1
star
38

fastboot-fs-notifier

A Fastboot App Server Notifier for the Filesystem
JavaScript
1
star
39

TubalrAndroid

Tubalr's official Android repo.
Java
1
star
40

discord-samplebot

A bot for extracting samples
TypeScript
1
star