Lovely:
# tired 5 am adam suggests you scrap the ensuing block and rewrite it while you are fresh # then again, he failed at writing queue tonight, so maybe his advice isn't great # i will hit him for you
March 6th, 2010 § 0
Lovely:
# tired 5 am adam suggests you scrap the ensuing block and rewrite it while you are fresh # then again, he failed at writing queue tonight, so maybe his advice isn't great # i will hit him for you
July 22nd, 2008 § 3
This morning I finished the twitter bot I mentioned in my twitter api post. It has been named ‘Anna’ in homage to the Basshunter song. It’s twitter alias is @spsp (st pauls school private). It is written in PHP and is more than just a bit of a hack job as opposed to any quality programming. I have never before done any work with XML so my method of transferring it to a usable array probably deserves a fair bit of criticizm. Anyway, I’ll upload a zip of the script for anyone interested to use, improve on or just comment on.
Purpose:
Usage:
Limitations:
The script is comprised of three files.
All of these files are available for download and the bits that are mine, are in the public domain for you to do what you want with.
I just hope that people use it!
July 17th, 2008 § 15
![]()
A couple of months back, I had an idea which could potentially increase Twitter’s worth to me.
Up until a month ago, I attended school with, among many others, a small group of rather close-knit twitter users (euphemism aside, I mean geeks). We used and still use Twitter as a passive medium for random comments, status updates and importantly chat. One downside that I have always seen in using Twitter, especially as an open chat client, is the inability to divide your followers into groups and serve them content separately. For Twitter to implement this would be to completely betray the main purpose of their service, but still I have sometimes wanted to send a message to only my school friends. I wanted to a twitter bot (wrong word?) which would make that possible.
The basic idea of the bot would be for everyone in the ‘group’ to follow a protected bot user. Then in order to message only the others in the group, they would send an invisible direct message to the bot, which would then relay it in its entirety to all of its followers. In this way all of the accepted followers of the bot account would get the message, but it would be delivered invisibly to the outside community. The nearest you could come to achieving this goal in twitter otherwise, would be to directly message every ‘group’ member individually.
So, today I took a quick dip into Twitter’s API to see if my vision was workable. Conclusion: using a php server running a cron job every 5 minutes, it would indeed be possible. And even I should be able to do it. The two main downfalls are that messages could only be relayed in 5 minute intervals, due to limits associated with querying the API, and should more than 20 direct messages be received within a 5 minute period, the earliest would be lost in the nethers of Twitter’s dark underbelly. (Twitter will only ever serve you a maximum of 20 direct messages at once.)
Interaction with Twitter’s API can be done through the reading of and posting to special XML and JSON files, and in some cases RSS and ATOM feeds.
So, would anyone actually use such a system if I were to hack it together?
Resources: