Closed Lautarotetamusa closed 9 months ago
@Lautarotetamusa hello! Thanks for your input, but the HTTPClient has been greatly changed, the proxyhas been added here and will soon fall into main branch. https://github.com/shazamio/ShazamIO/pull/91
I also don’t see the point of a permanent proxy, when a person needs it, he will pass it to the required method, otherwise he will have to recreate the Shazamio object / remove self.proxy value / set self.proxy value, etc..
Could anyone give an example of how to use a proxy? I'm getting too many 429 errors.
Related to this issue: https://github.com/dotX12/ShazamIO/issues/65
I recently started experiencing issues using the library in a project because I consistently reached the Shazam API call limit. That's why I decided to implement the option to use proxies.
I added the 'proxy' parameter to the Shazam class; hence, all requests will use this proxy. I believe that if someone wants to use proxies, they would prefer using the same proxy for all requests. If you think the proxy should be in the 'recognize_song' call, let me know, and I can make the change.