Project: Spending Tweets

Spending Tweets was developed as an exercise for I was challenged to produce a twitter bot that would respond to queries from users about local government spending in approximately 4 hours.

The bot is written in PHP using the CodeIgniter framework and works by listening for twitter @replies containing a formatted query using the Twitter API.

When a valid query is received, the bot attempts to locate the relevant open data using the API provided by Openly Local. If information is located, a response is sent containing as much information as possible and a link to full details.