I've been approached to use my code to collect a dataset of tweets for another organisation - am I allowed to do this?
They would be paying my time to setup a listener and I would give them a set of tweets.
-- edit --
Twitter API terms say I can't redistribute content and lots of freely available twitter datasets have been taken off the web this year.
But I am allowed to to do the above - provide tweets to one organisation?
You would use the Twitter Streaming API to accomplish this. You would setup a listener for your keywords and whenever there is an update, new tweets will be pushed to you.
You may have seen the following clause:
You may not use Twitter Content or other data collected from end users of your Client to create or maintain a separate status update or social network database or service.
What this basically means is that you cannot re-create Twitter. But it is acceptable to collect these tweets for analysis and for usage of the dataset as service augmentation. There are many companies doing this today.