Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bandcamp requires User-Agent to access #174

Open
tnachen opened this issue May 1, 2017 · 8 comments
Open

Bandcamp requires User-Agent to access #174

tnachen opened this issue May 1, 2017 · 8 comments

Comments

@tnachen
Copy link

tnachen commented May 1, 2017

Bandcamp return 403 without a proper User-Agent, so getting bandcamp metadata fails now.

@Miserlou
Copy link
Owner

Miserlou commented May 1, 2017

Good one

@brachna
Copy link
Contributor

brachna commented May 6, 2017

True. Easy to fix using requests.session object. download_file already can work with it.

@Miserlou
Copy link
Owner

Miserlou commented May 6, 2017

I also haven't able to repro this, needs example URL.

@brachna
Copy link
Contributor

brachna commented May 6, 2017

@Ristellise
Copy link

FYI Any updated browser would work.. such as chrome or firefox.

@Evolution0
Copy link

Any track, album, or Bandcamp CDN server url (popplers# -> p#.bcbits.com) will cause you to run into this issue now and yes using a User-Agent fixes it (Its how I got bandcamp-dl working again)

Otherwise you get a 403.

@tnachen
Copy link
Author

tnachen commented May 10, 2017

I manually fixed it in my local soundscrape by setting a user agent when getting the metadata and downloading each mp3 link.

@Miserlou
Copy link
Owner

@tnachen - want to submit a PR? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants