小编Ban*_*ani的帖子

Twitter API V2 403:禁止使用 tweepy

即使我的帐户处于活动状态,我也无法使用我的 Twitter 开发者帐户进行身份验证

\n
import tweepy\nconsumer_key= 'XX1'\nconsumer_secret= 'XX2'\naccess_token= 'XX3'\naccess_token_secret= 'XX4'\nauth = tweepy.OAuthHandler(consumer_key, consumer_secret)\nauth.set_access_token(access_token, access_token_secret)\napi = tweepy.API(auth)\napi.update_status("Hello Tweepy")\n
Run Code Online (Sandbox Code Playgroud)\n

我收到错误:

\n
Forbidden: 403 Forbidden\n\n453 - You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you\xe2\x80\x99ll 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\n
Run Code Online (Sandbox Code Playgroud)\n

开发者门户上没有从 Essential 升级到 Elevated 的选项。有什么建议吗?

\n

python twitter tweepy twitterapi-python

3
推荐指数
2
解决办法
2万
查看次数

标签 统计

python ×1

tweepy ×1

twitter ×1

twitterapi-python ×1