Simple python script which downloads Bandcamp albums and songs in mp3 format. MP3 Files come with ID3 metadata.
usage: main.py [-h] [-u] link
Download bandcamp albums
positional arguments:
link Enter a valid bandcamp album or song link
optional arguments:
-h, --help show this help message and exit
-u, --upload Uploads files to YT Music
$ bcdl https://wolfgang-amadeus-mozart.bandcamp.com/album/mozarts-requiem-instrumental
Getting MP3 links...
Getting album cover from: https://f4.bcbits.com/img/a2608013838_16.jpg
Downloading Album: Mozarts Requiem Instrumental: 100%|██████████████████████████████████████████| 12/12 [00:05<00:00, 2.06it/s] 100%|████████████████████████████████████████████████████████████████████████████████████████████| 12/12 [00:05<00:00, 2.06it/s] Download Success!
Uploading to Youtube Music using ytmusicapi
Folder C:/Music/Mozarts Requiem Instrumnetal: 100%|██████████████████████████████████████████████████████| 13/13 [00:21<00:00, 1.68s/it]
Upload Success!
- Install the requirements in the project directory
pip install -r requirements.txt
- Set your preferred directory path where you want your music installed to
.\bandcampdl\pathdir.py
MUSIC_DIRECTORY = "C:\Music" # Default directory
- run
python main.py [-h] [-u] link
This script supports ytmusicapi where you can instantly upload songs to Youtube Music after downloading.
-
Follow the setup steps using the ytmusicapi documentation to create a
headers_auth.json
-
Place the newly created
headers_auth.json
in the directory folder -
Use the
-u
argument when runningpython main.py
-
Yes, bandcamp allows people to download the underlying MP3-128 files
-
Support bandcamp artists!