easlice / bandcamp-downloader

Download your bandcamp collection using this python script.
MIT License
303 stars 41 forks source link

HTTP/TLS fingerprint #35

Open gkdwoe opened 1 month ago

gkdwoe commented 1 month ago

In my case python requests to "https://bandcamp.com" resulted in 403 forbidden. Using something like https://github.com/lexiforest/curl_cffi to impersonate chrome would work fine.

easlice commented 3 weeks ago

Hey @gkdwoe, did you test using curl_cffi and saw that it resolved this?

I've hit this issue from time to time too. I tried setting the user-agent header manually but still received the error from bandcamp's varnish cache server.

easlice commented 3 weeks ago

Nevermind, I just tried it with curl_cffi, and that does work where just setting the user agent doesn't. Odd.

It also takes a few code changes (their Request object doesn't support with ... as ... syntax), but I'll get a change out for this shortly.