首页 > 解决方案 > 使用一个帐户的 Twitter API 从另一个帐户发送推文?

问题描述

是否可以使用我在账户 X 上的 twitter API 注册账户从另一个账户 Y(也是我的账户)发推文?

标签: twittertweepytweetstwitterapi-python

解决方案


是的,您只需使用 OAuth 1.0a 以帐户 Y 身份进行身份验证。
有关更多信息,请参阅https://developer.twitter.com/en/docs/basics/authentication/overviewhttps://developer.twitter.com/en/docs/basics/authentication/oauth-1-0a

如果您使用的是 Tweepy,请参阅https://tweepy.readthedocs.io/en/latest/auth_tutorial.html


推荐阅读