QuestionI've been trying (and failing) for the life of me to just simply connect to the twitter api using tweepy and post 1 tweet. I have no idea why my code won't work, it keeps giving me the error that I don't have a high enough access level. (tweepy.errors.Forbidden: 403 Forbidden 453 - You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only.) (Obviously the credentials.py file has my actual credentials in their respective areas) Any help would be greatly appreciated. Tried everything, expected it to post a tweet. Also expected it not to be such a nightmare to use twitters awful new api Relevant Codeimport tweepy
from credentials import twitter_bot_keys
auth = tweepy.OAuth1UserHandler(
twitter_bot_keys['API Key'],
twitter_bot_keys['API Key Secret'],
twitter_bot_keys['Access Token'],
twitter_bot_keys['Access Token Secret']
)
api = tweepy.API(auth)
api.update_status("test")Tracebacktweepy.errors.Forbidden: 403 Forbidden
453 - You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/productTwitter API Access PlanFree Tweepy VersionNo response Checklist
Additional ContextNo response |
Replies: 1 comment
|
Found a related StackOverflow post, the answers in this solved it for me (in case anyone else had the same question) |
Found a related StackOverflow post, the answers in this solved it for me (in case anyone else had the same question)
https://stackoverflow.com/questions/76419375/twitter-api-access-denied-for-posting-a-simple-tweet?rq=2