Monday 23 December 2013

How to write a Twitter Bot


Twitter Bot
Professional who to use twitter would have come across this term Twitter Bot. To common folks whodidn’t know anything about this, can learn what Twitter Bot while reading this further is.

Writing a Twitter Bot isn’t that tough, you can make it up in 5 minutes. A little bit of JavaScript may let you to know about Twitter Bot, but that is not certainly going to be a requirement just to make a basic Twitter Bot.
Bot is usually termed as an essential program that is always running at background. While running so whenever a command given to them especially tweets, it tends to process them number of tweet and provide a reply to the tweeter usually not in the same but a different tweet.

At earlier stages of development you would surely need a web server to run the Bot, while Bot is written using languages like PHP, Perl or phython. These language’s are not know by everyone so let’s make it simple. So let’s try out in Google Drive.

Step’s to write Twitter Bot

• To perform this Bot the first and foremost step is to create a Twitter account, that’s tends to be the Bot at later on stages. Have you ever come across dev.twitter.com, go to that sign-up with Twitter account and create Twitter app. Provide app name, description, website URL and how to get back named callback URL. Finally on processing everything at last Agree terms and conditions, fill the CAPTCHA and submit the form. Now you can create Twitter Application.

• Now Twitter app will be created and clack on settings tab and click on Read and Write under the Application Type. This will help since we want to read tweet and also to re-tweet or post tweet. After completing these steps click on update button to save your change.

• OAuth tool tab is an option available in Application and try to switch over. Then make a note of the customer Key and consumer Secret, because these things will be later on needed in Google Apps Script.

Proceed to Step B: Create a WolFarm Alpha App

• Twitter App will monitor the tweets and have a respond to tweet, while Wolfarm App used to find out answer that user tends to post to your Twitter bot.

• To work out with Wolfarm you have to create an account. For this procedure visit developer.wolfarm.com. Generate an account and then choose Get an App ID to generate new app.

• Nothing proceed now will go in vein. Creating new account in Wolfarm will help later on in Google script. You can purchase a full or free version, on free version it works only a non-commercial purpose, so you have to make a note of this.

Guidelines for creating Twitter Bot with abcd is that 

• You have a send a mail to businessdevelopment@abcd.com to deal up regarding license. Queries can be made to @DearAssistant at the rate of 2,000 per month.

Proceed to Last Step: 

• Clear to have a copy of Twitter Bot in your device. And re-enter the values of Twitter Consume key with Twitter Consumer Secret and also the Twitter Handle.

• Initialize the Twitter Bot through Run. On Authorization access to Google Script Service provide yes.

• At last Go to Run and upon authorization it will lead you to the Script access to Twitter account.

No comments:

Post a Comment

Note: only a member of this blog may post a comment.