DEV Community

Discussion on: Many bot accounts using 1 Twitter Developer account

Collapse
 
randomjkbn profile image
random

To use the Twitter API, u will need to use 4 variables - consumer_key, consumer_secret, access_token, access_token_secret in your bot program(which could be in Python(tweepy library is pretty famous), JavaScript or any language of ur choice).

  • consumer_key and consumer_secret should be the keys from the standalone app which is created from Twitter developer account.
  • access_token and access_token_secret should be the keys you obtain after running the nodejs program and visiting localhost:3456 (while logged into the bot account).

This blog only explains about how to get these 4 keys not about how to create a Twitter bot. (There are plenty of resources available online for creating a Twitter Bot)

Hope this helps!