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

allow to specify User-agent (or headers in general) #146

Open
vladak opened this issue Mar 22, 2023 · 1 comment
Open

allow to specify User-agent (or headers in general) #146

vladak opened this issue Mar 22, 2023 · 1 comment

Comments

@vladak
Copy link
Contributor

vladak commented Mar 22, 2023

Today I got an e-mail from Flickr, informing that API calls will have to supply the 'User-Agent' header and there is some discussion raging on https://www.flickr.com/groups/api/discuss/72157721918374433/72157721918403334/. Given that flickrapi uses the requests module, which sends a non-empty User-Agent header by default (even if one supplies the 'headers' parameter), I think we are good here for now.

That said, it would be nice to be able to specify a custom (User-Agent) header (or just a bunch of custom headers in the form of dictionary) when creating the FlickrAPI object.

Or maybe override the default 'User-agent' header with something like flickrapi/3.0.dev0 or such by default.

@drsybren
Copy link

It would seem that the decision has been reverted already: https://www.flickr.com/groups/51035612836@N01/discuss/72157721918374433/72157721918411949

Regardless, this could be a nice feature.

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

2 participants