A browser automation script to batch download your private bandcamp collection.
A browser automation script to batch download your private bandcamp collection.
npm i impaler/bandcamp-dl -g
This provides the bandcamp-dl
command. So to download your entire collection to ~/Downloads/.bandcamp
run this:
bandcamp-dl -d ~/Downloads/.bandcamp --username charles --password secrets
A hidden Chromium browser now run's in the background, progress info will print to stdout.
See more options in the help:
bandcamp-dl --help
You can do other things like specify format and a search filter, eg:
bandcamp-dl --format FLAC --search "Amiga500" -u Charles -p secrets -d ~/Downloads/.bandcamp
Thanks to Nightmare, Electron and Chromium. With this we can automate almost anything in a web browser.
--debug
options to show the browser and debug it yourself ;)