I am using some python code to extract tweets from Twitter API. From HERE:
https://github.com/motazsaad/tweets-collector#install-requirements