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

genius.search_song returns 403 Forbidden #288

Conversation

ItsJustAGitHubMichealWhosGonnaSeeIt5Ppl
Copy link
Contributor

Fixes #287 by changing the User-Agent to the users device name instead of LyricGenius.

Fixes johnwmillr#287 by changing the User-Agent to the users device name instead of LyricGenius.
@ItsJustAGitHubMichealWhosGonnaSeeIt5Ppl
Copy link
Contributor Author

The more I think about this, the less I think it is an issue, at least for endpoints that require auhtentication. If someone is abusing it, their API key will just get blocked.

Copy link
Owner

@johnwmillr johnwmillr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your changes, @ItsJustAGitHubMichealWhosGonnaSeeIt5Ppl and @Vauth. I've made the User-Agent an optional configurable parameter that defaults to the user's system information. I refrained from using platform.uname() so as to avoid leaking personal information.

@johnwmillr johnwmillr merged commit 7635cff into johnwmillr:master Dec 22, 2024
2 of 5 checks passed
@ItsJustAGitHubMichealWhosGonnaSeeIt5Ppl ItsJustAGitHubMichealWhosGonnaSeeIt5Ppl deleted the ItsJustAGitHubMichealWhosGonnaSeeIt5Ppl/issue287 branch December 24, 2024 10:57
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

Successfully merging this pull request may close these issues.

genius.search_song returns 403 Forbidden
3 participants