Python Tweepy:lookup_users()无法执行写入操作,错误261

Python Tweepy:lookup_users()无法执行写入操作,错误261,python,twitter,tweepy,Python,Twitter,Tweepy,您好,我正在通过Python上的Tweepy使用Twitter API,因为它是一个读取函数,我不明白为什么会收到以下消息: [{'message': 'Application cannot perform write actions. Contact Twitter Platform Operations through https://help.twitter.com/forms/platform.', 'code': 261}] This App has violated Twitter

您好,我正在通过Python上的Tweepy使用Twitter API,因为它是一个读取函数,我不明白为什么会收到以下消息:

[{'message': 'Application cannot perform write actions. Contact Twitter Platform Operations through https://help.twitter.com/forms/platform.', 'code': 261}]
This App has violated Twitter Rules and policies. As a result, certain functions will be limited. An email has been sent to ******@gmail.com with details. For assistance, submit a support ticket.
当我检查我的开发者门户时,我发现以下消息:

[{'message': 'Application cannot perform write actions. Contact Twitter Platform Operations through https://help.twitter.com/forms/platform.', 'code': 261}]
This App has violated Twitter Rules and policies. As a result, certain functions will be limited. An email has been sent to ******@gmail.com with details. For assistance, submit a support ticket.
这很有趣,因为我只将API与我自己的凭据/用户一起用于:

public_tweets = api.user_timeline()
lookup_users = api.lookup_users(user_ids=[user_id])
其他信息: 我为我的应用程序授予了读取、写入和发布权限

  • 如果这是一个读取函数,为什么我不能执行写入操作
  • 我有没有办法用我的应用程序处理这个问题?推特没有回应我的呼吁

  • 此错误代码似乎表示应用程序权限存在问题,与端点无关:

    代码261-应用程序无法执行写入操作

    您与API一起使用的应用没有为其访问令牌和访问令牌密钥设置正确的密码。请导航到仪表板上的“密钥和令牌”选项卡,并检查分配给您的访问令牌和访问令牌机密的权限级别。如果设置为“读、写和直接消息”以外的任何内容,则您必须调整“权限”选项卡下的设置,并重新生成访问令牌和访问令牌机密以应用新设置

    除了提交支持票和等待回复外,我认为就限制本身而言,你没有什么其他可以做的