Code for collecting data from Twitter