Search code examples
pythontwittertwython

Twitter API twython: Post a tweet with a different account


I can post a Tweet with simple code:

tweeter = twython.Twython("Consumer_Key", "Consumer_Secret",
                          "Acess_Token","Acess_Token_Secret")
tweeter.update_status(status="I am so excited for the new Interchange Map!")

The problem is, the tweet will be posted on my profile. My Question is, can i post a tweet on a different account, but with my Keys and Tokens? Something like this:

tweeter = twython.Twython("Consumer_Key", "Consumer_Secret",
                          "Acess_Token","Acess_Token_Secret")
account = tweeter.login("username", "passwort")
account.update_status(status="I am so excited for the new Interchange Map!")

Solution

  • Keys and tokens are tied to a particular account, so you can't do this.