ch00beh

✨ software pretengineer ✨

i'm here to dumb ass and chew bubblegum and i'm all out of bubblegum

name gen: @onomancer

capybara dating app: @capybr


iliana
@iliana

apropos of nothing, this thing i wrote years ago still works:


deafhobbit
@deafhobbit

here's how i, a non-programmer, was able to get this to work on windows.

  1. install python. you can do this at python.org, or through the windows store

  2. run windows command prompt as an administrator, and enter

pip install browser-cookie3

this will install browser-cookie3, which iliana's script depends on.

when i first tried this, i got the following error message

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

to fix that, i went to that url, and downloaded the build tools installer. it has a lot of options for which components to install, but selecting the "desktop development with C++" option worked for me. after installing it, pip install browser-cookie3 worked.

  1. go to https://github.com/iliana/bandcamp-dl, and download bandcamp-dl.py

  2. the default file path for windows command prompt is C:\Windows\System32. we need to change that to the folder we downloaded bandcamp-dl.py to. in windows command prompt, type "cd", then hit space, then enter the full address of the folder bandcamp-dl.py is in. if you don't know how to get this address, google it.

  3. after you've changed the command prompt file path, enter the following

python bandcamp-dl.py --format mp3-v0

the "--format mp3-v0" at the end can be changed to download in other file formats. check the readme on github for details.

if this works, you should see the command prompt start going through and downloading your bandcamp library, one album at a time. leave it open and running until it's done.

if this doesn't work for you, you'll need to troubleshoot that. i needed a lot of help to get this to work myself, so if you run into a problem i didn't encounter, i probably won't know the solution. try to figure it out, or check the comments in here or in github to see if anyone else had the same issue. thanks to Storm Vision in SIBR for helping me figure this out.


You must log in to comment.

in reply to @iliana's post:

I know you said "won't provide support" but, both the automatic cookie retrieval and --identity are just not working on Windows.
Is there something I'm doing wrong?

I get either urllib.error.HTTPError: HTTP Error 400: Bad Request (with --identity) or PermissionError: [Errno 13] Permission denied: 'C:\\Users\\tit\\AppData\\Roaming\\..\\Local\\Google\\Chrome\\User Data\\Default\\Network\\Cookies' with the cookie retrieval library (despite running console as admin). (definitely not going to give myself permission to read that file for obvious reasons)

I think the cookie value I'm retrieving through devtools might not be formatted right, it gives me this for identity:

7%09[base64string=]%7B%22id%22%3A[idnumber]%2C%22ex%22%3A0%7D

or, as URL-decoded:
7[space][base64string=][space]{"id":[numbers],"ex":0}

Do I send just the base64 string? Do I include the 7 and the space? Do I include the JSON part? Do I strip the = (no??)?

None of the above options seem to work.

Not sure how to fix this, some support would be appreciated!
As someone with a LOT of bandcamp albums, this would save me literally a century of clicking downloads links.