How to make a twitterbot?


#1

Hey all,
Just a quick question - I was hoping someone could point me in the right direction.
I’ve seen different “bots” on twitter that when someone tweets a certain hashtag, they are able to pick it up and retweet it. (traffic bots)
There are also trivia bots, etc… I also saw one that corrected people that said “sneak peak” instead of “sneak peek” - very useful indeed.

I’m just wondering what kind of resources are out there, any instructions/tutorials would be awesome.
I browsed through this dev site but it seems to be focused on app development, maybe I just missed it though…

Any help would be appreciated. Thanks a lot


#2

So this is… 35 weeks late, but I wrote up a guide on how I built @metaphorminute here:

http://tinysubversions.com/2012/05/how-i-built-metaphor-a-minute/

And source code here: https://github.com/dariusk/metaphor-a-minute

I have another bot here as well (@latourswag): https://github.com/dariusk/latourswag

You do need to be careful when writing a bot that you don’t go against any of Twitter’s spam policies. They’re listed in the Developer Rules of the Road:

https://dev.twitter.com/terms/api-terms

But basically, you don’t really want your bot to @reply anyone, or even to use a hashtag, as that could be construed as polluting a hashtag.


#3

You can create your own Twitterbot here,

http://www.botlibre.com


#4

i want built a bot


#5

Hi Folks, sorry to hijack this thread- I couldnt see how to start a new one.
I want to build an app (or get one built) that collects tweets from specific words and or hashtags into one stream. This stream is then posted as a stream. I dont know if this should be a “Bot” or an application. It would be easier if people do not have to log into have the post collected. Basically its for use a an event to collect relevant tweets. Any ideas, suggestions? I can drive a website etc but not up to detailed PHP. Im stalled at setting up a APP in the Dev area.
Thanks


#6

We can setup and host the Twitterbot for you. Send us a mention or DM,

Thanks!


#7

I thought Twitter bots were not Twitter legal, especially when used for voting purposes for an event.
A lot of accounts get closed out/restricted when they are caught.


#8

This depends on your app and API usage - all applications need to abide by the Developer Rules of the Road and our policies.


#9

@andypiper At the moment I’m thinking abbout making twitterbot. What kind of restriction and policies should I look into?


#10

#11

Thanks! I still have some question. How I can contact someone to talk details and be sure to not validate Twitter rules?


#12

You can use the Support forms and the Rules and Policies forum.


#13

You can find a bunch of useful resources on botwiki.org:

We also have a public Slack group you can join at botmakers.org and a newsletter you can subscribe to at botzine.org.


#14

If one replies to a twitterbot, will the notification be received by the person who created the bot?


#15

It would appear in the notifications for the account belonging to the bot.


#17

Hi @andypiper I created a twitter bot on BOT Libre but seems like it’s not working, I want a bot to retweet keywords based on twitter search syntax or hashtag. Couldn’t find any helpful that doesn’t require to purchase. Can you help ?


#18

I can’t really help as I don’t know anything about “bot libre” - there are plenty of examples around of free code you can use.


#19

A guy called daniel shiffman has a great tutorial on youtube on how to make a twitter bot using Node if anyone is interested.


#22

You can also write your own Twitter bots using Google Scripts. See this Twitter Bot Tutorial.


#23

After all this years, I guess you did your work done :slight_smile:. But speaking of twitter bot, one can use python with tweepy. This is quite easy.