Twitter update and bots

First up I am really enjoying Twitter, can’t really explain why maybe it is the “real” social interactions going on. However I enjoyed it far more when I received SMS updates of what my friends were doing, this seemed to have died over the weekend. I feel like I have been left out in the cold without the SMS updates. I send a note to Twitter support and strangely did not hear back (Evan any ideas?).

Another thing the BBC News bots really interested me in how simple they were to create.

So over the last few days I have hacked together my own bots.

First up a bot providing Australian ABC News updates, http://twitter.com/abcnews, it provides twitters of the top stories running the the Australian ABC News website.

After I got this one going I thought it would be great to be able to follow the cricket, so I created a ABC News Cricket bot, http://twitter.com/cricketnews.
I hacked up Mario’s Perl script, converted it to php as I could not get it running on my hosting provider (due to missing Perl modules). I also grabbed bits from Victoria’s WordPress Updater plugin, fsockopen commands as CURL would not update Twitter through php.

If you are a Twitter user check them out.

I need to clean up the code and will post it in the next few days.

PS. I hope the ABC don’t get upset.

PPS. Sorry for the typos, it is 4am and I can’t sleep.

Update:  It seems when you update via the Twitter API the updates are not sent to via IM or SMS to followers, or is it just me?

2 thoughts on “Twitter update and bots

  1. Hey Michael –

    You don’t want to share your PHP code do you? It would be much appreciated as I’m trying to create my own Twitter bot and having difficulties – but PHP I get…

    Thanks,
    James.

  2. James, I would if it was any good :-). As long as you don’t laugh I will email it to you.

    Actually both bots died after an upgrade by Twitter and I cannot work out why. So I maybe doing something really wrong.

Comments are closed.