This is one of these things that should exist, but didn't. An application to pick a random tweet, given a search expression:
It's extremely useful for IT events and promotions, but after googling for all the possible combinations of "Twitter Draw", "Twitter Roulette" and "Twitter Lottery", we finally gave up. There was no such thing.
Actually, there are good reasons for this:
- To use the Twitter API, the user must validate using OAuth1. That's a though barrier of entry for many casual developers.
- The Twitter Search API v1.1 does not support JSONP.
- The JSON API does not support CORS. This looks like a bug, when you compare with Github and others.
So we rolled a Chrome extension, since it can specify its own CORS restrictions. It took us 48 hours to put something together, not bad considering that this is our first Chrome extension. It requires the credentials from an application registered at apps.twitter.com. Just register anything, create an access token and copy these four values into the extension.