How to collect data from Twitter's REST API