i have been trying to code a small python code or even just use a small website that does exactly what i want my code to do, but no matter what, my authentication doesn’t work, and just says that my keys are invalid even though they are the ones twitter gave me

does anyone know what causes this problem ?

tweepy.API(auth)

In Tweepy, you are using v1.1 API, for which you need Elevated access, by default you only have access to v2 API, and should use Client — tweepy 4.10.1 documentation instead

3 Likes

okay i’ll try that thanks