logo
logo

How to build your own Twitter bot in less than 30 minutes

avatar
Wayne Chapple
img

Twitter bots can do a heck of a lot more than just spam trending hashtags and relentlessly follow users.Take the Twisst ISS alerts bot, which sends you a direct message whenever the International Space Station will be visible at your location.Or public service bots like the Earthquake Robot, which tweets about any earthquake greater than 5.0 on the Richter Scale as it happens.And of course a robot that tweets poetry, poem.exe, along with one that will retweet your tweets that also happen to be an Accidental Haiku.I personally use a bot to enhance my @ScottDevTweets account by liking and retweeting subjects I have an interest in.The 100DaysOfCode community challenge will congratulate you on starting the 100DaysOfCode challenge, and again when you reach specific milestones.It will also reply with encouragement if it detects negative sentiment frustration in a tweet that has the 100DaysOfCode hashtag in it.One question I m asked in job interviews quite often is what do you get out of working with technology?

I like the the feeling of accomplishment that comes with having saved myself some time.

In the case of my @ScottDevTweets bot, it s usually an opener for a conversation with another person who follows me.

So the bot can initiate the conversation, then I can carry on from where the bot left off.Bearing this in mind, a bot is only as ethical as the person who programmed it.If you have any doubts about the ethics of the bot you re building, check out botwiki s ethics section.So, ready to get started?

OK. Let s do this!You re going to use the twit library to build a Twitter bot.

It will like and retweet whatever you specify.

collect
0
avatar
Wayne Chapple
guide
Zupyak is the world’s largest content marketing community, with over 300 000 members and 3 million articles. Explore and get your content discovered.