Closed orlevit closed 3 months ago
Hi. You're not missing anything. Also, you don't need to set up OAuth2 unless you need it for authorizing people on your web app (which doesn't seem to be the case for you).
The problem here is that geniust.search_artist
sends requests to Genius's Web API; this API is the front-facing API that doesn't need a token to be used and subsequently is checked by Genius's IP checker. The solution here is to either: change your IP or use methods that don't send requests to the Web API (you will have limited functionality in this case).
Thanks! It worked π
It worked when I tried to run from a local python file. Same code wasn't working on google collab (not the same ip address) I was getting the 403 error code.
Hi π I am folllowing the usage instructions and I get the following error: "HTTPError: [Errno 403] 403 Client Error: Forbidden for url: https://genius.com/api/search/multi?q=Andy+Shauf"
The code + error:![image](https://github.com/johnwmillr/LyricsGenius/assets/49340082/a4904d6f-3450-40f4-9f20-4d21e452447a)
The token is the "generated access token" from the Genius API:![image](https://github.com/johnwmillr/LyricsGenius/assets/49340082/8f83aceb-ac57-46e4-9915-7275979ee42a)
Even with oauth2, I still get the same error![image](https://github.com/johnwmillr/LyricsGenius/assets/49340082/b5e9b532-8429-4e4f-b6a6-c4edca4d2e25)
What am i missing? Thanks for the help! π