skip to Main Content

Twitter API V2 403: Forbidden using tweepy

I'm not able to authenticate using my twitter developer account even though my account active import tweepy consumer_key= 'XX1' consumer_secret= 'XX2' access_token= 'XX3' access_token_secret= 'XX4' auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.API(auth) api.update_status("Hello Tweepy") i'm getting error :…

VIEW QUESTION

The Error tweepy.errors.Forbidden: 403 Forbidden – Twitter API

import tweepy print("This is a twitter Bot") apiKey="XXXXXXXXXXXXXXXXXXX" apiKeySecret="YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" accessToken="1111111111111111111111111111111111111" accessTokenSecret="222222222222222222222222222222222222" auth=tweepy.OAuthHandler(apiKey,apiKeySecret) auth.set_access_token(accessToken,accessTokenSecret) api=tweepy.API(auth) api.update_status('Twitter Bot In Action')

VIEW QUESTION
Back To Top
Search