meu codigo:
import tweepy as tw
consumer_key = 'Vy677W99SCJvcKdW0OEYmNDBR'
consumer_secret = 'OLCvFz2DRz5hkBcGtGreSeQAyKnXP8FuyI76ZlkPlfR5eSSk07'
access_token = '3303311770-1OH0YLWMYRKfOLS1LWcKhDciUNOkGKLZy3BeNhx'
access_token_secret = 'RHVg9wP4K6dE3H3EsRFq8iWzBYirAcciNcvSzuLV8hLqa'
api = tw.API(auth)
api.update_status('shdahsh')
erro:
Forbidden Traceback (most recent call last)
c:\Users\vinye\Desktop\programação\python\ds_ml\ml\reconhecimento_de_imagens\reconhecimento_imagens.ipynb Cell 3' in <module>
1 api = tw.API(auth)
----> 2 api.update_status('shdahsh')
File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\tweepy\api.py:46, in payload.<locals>.decorator.<locals>.wrapper(*args, **kwargs)
44 kwargs['payload_list'] = payload_list
45 kwargs['payload_type'] = payload_type
---> 46 return method(*args, **kwargs)
File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\tweepy\api.py:1121, in API.update_status(self, status, **kwargs)
1118 if 'media_ids' in kwargs:
1119 kwargs['media_ids'] = list_to_csv(kwargs['media_ids'])
-> 1121 return self.request(
1122 'POST', 'statuses/update', endpoint_parameters=(
1123 'status', 'in_reply_to_status_id',
1124 'auto_populate_reply_metadata', 'exclude_reply_user_ids',
1125 'attachment_url', 'media_ids', 'possibly_sensitive', 'lat',
1126 'long', 'place_id', 'display_coordinates', 'trim_user',
1127 'card_uri'
1128 ), status=status, **kwargs
1129 )
File ~\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\tweepy\api.py:259, in API.request(self, method, endpoint, endpoint_parameters, params, headers, json_payload, parser, payload_list, payload_type, post_data, files, require_auth, return_cursors, upload_api, use_cache, **kwargs)
257 raise Unauthorized(resp)
258 if resp.status_code == 403:
--> 259 raise Forbidden(resp)
260 if resp.status_code == 404:
261 raise NotFound(resp)
Forbidden: 403 Forbidden
453 - 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