skip to Main Content

Post tweets using tweepy and Twitter API V2

I need my Twitter app to tweet some information, but something is going wrong. First, I created an app and tried this code to test credentials: auth = tweepy.OAuthHandler("CONSUMER_KEY", "CONSUMER_SECRET") auth.set_access_token("ACCESS_TOKEN", "ACCESS_SECRET") api = tweepy.API(auth) try: api.verify_credentials() print("Authentication Successful") except:…

VIEW QUESTION

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