I need a script that calls the Twitter API and returns search results. The resulting tweets will be displayed on a web page (perhaps with profile pictures) in a list of a specified length. Each tweet will have a vote up/vote down button which, when clicked will register a count for that tweet.
The script cannot call the Twitter API too often (once per 30 seconds, or so), so results will need to be cached for performance (perhaps as XML). We will only store the tweets that get voted up, and those will be stored in the database. A second page/script will display the highest voted tweets for that day (drawn from the database).
The script should be fast and take advantage of caching. There will be no login or user information recorded, just the votes. Users should get only one vote on each item.
Experience with the Twitter API is a plus.