3

Some Twitter Bot Service Basics

Posted by Dan on Jun 27, 2009 in General stuff

Just posting a few basic bits of info about how the TwitterBot Service is currently running.

So the twitter bot is currently requesting the last 20 tweets  fron the public timeline every minute (on a every minute cron) meaning at the moment the public timeline requests come out of the main server IP and are falling far below the 100/hr limit. However currently looking into ideas on how to increase the rate to catch more tweets! (Ideas welcome, please leave a comment or email me).

The tweets which get catched by the tweet grabber bot are saved into a database to be processed, I then have another bot “ProcessingBot” (I am immaginative with my script names i know) runs every 5 minutes and loops through each unprocessed tweet, and each bot in the system checking for matches to 3 phrases stored in the DB (I will be  changing this part to make it more flexiable ASAP) and if it matches the tweet gets retweeted to the bot account in the format of (@SCREEN_NAME) TWEET as you can see on @JacksonBot which is currently retweeting tweets with the key phrases of “Jackson” “MJ” and “Micheal Jackson” and seems to be working very well (currently 500+ tweets in 12 hours and 32 followers – Yes I am hoping this doesnt hit the post limit and have applied for whitelisting).

For anyone who is interested ;)

Dan

 
0

Twitter Bot Service!

Posted by Dan on Jun 27, 2009 in General stuff

Hello,

Wow i finally pulled my finger out and have been working hard today starting work on a twitter bot service, now so far i have some of the core done, and infact now have 3 bots running @jacksonbot which unsuprisingly (should) pick up tweets about Micheal Jackson, the second is a Note to self bot… appropriately named @NoteToSelfBot and then the 3rd bot i have going is the @IsDeadBot which while slightly morbit picks up tweets for things realted to erm dead things.

Now i will be working very hard on this system to get it all working nicely and there maybe bugs in the output (please email me if you spot any!) , and eventually i will be developing this into a full service which should enable users to simply signup and have their very own twitter bot!

I honestly can’t wait to get this going so see you tomorrow and will try and keep you all posted.

Will be fun to see how they go overnight.

Night all. x

Copyright © 2010 D-Blog All rights reserved. Theme by Laptop Geek.