Make your own TWITTER BOT!(Linux)

Hi all, today I’m going to tell you guys how to create a twitter bot. What is a bot. Bot is a simple computer program used to perform highly repetitive operations. You might have already seen some twitter bots but haven’t recognized them as bots. Here I’m going to create a simple retweet bot.  Everything is done and you just need to get the API keys from twitter. Follow these steps to get API keys from twitter.

  1.  Go to https://apps.twitter.com/ and create a new twitter application.
    Capture1
  2. Then go to “Keys and Access tokens” to generate required keys
    Capture3
  3. Then click on “Create my access token” and generate your access token.

Now all the hard work is done. Go to this git repo(https://github.com/rnavagamuwa/retweetBot.git) and clone this( git clone https://github.com/rnavagamuwa/retweetBot.git).  Now do the following steps.

  1. Install dependecies. ‘pip2 install tweepy’
  2. Make a copy of config.json.sample to config.json
  3. Make a copy of textrc.json.sample
  4. Complete thr fields of the two json files.
  5. Run it or push it to heroku Run Locally `python bot.py’

DONE!!!! ENJOY 🙂

One Comment Add yours

  1. A round of applause for your article post.Thanks Again. Keep writing.

Leave a Reply