skip to Main Content
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')

4

Answers


  1. This is an issue that I was just facing, I have discovered that you must apply to have Elevated Features in the twitter developer portal.
    It was after messing around with more permissions on the portal that I was met with this error message

    TweepError: [{'message': 'You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve', 'code': 453}]

    Login or Signup to reply.
  2. First of all, you’ll want to regenerate your credentials now if you haven’t already.

    Make sure you’re using the correct credentials.
    If you’re using Essential access, you won’t be able to access Twitter API v1.1.

    See the FAQ section about this in Tweepy’s documentation for more information.

    For code block usage, see https://stackoverflow.com/editing-help.

    Login or Signup to reply.
  3. You need to ask for Elevated access before using Tweepy, in:

    https://developer.twitter.com/en/portal/products/elevated

    Login or Signup to reply.
  4. Delete the previous app

    Get Elevated access

    Create a new app

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search