Refactor get_tweets into 4 separate functions