100 Scripts in 30 Days challenge: Script 21 — Reading Twitter Stream using Tweepy CryptAnon Follow Apr 25, 2017 · 1 min read

One of the key features of Tweepy library is reading Twitter Stream and it also has feature of filtering stream by a search term. If you want to consume public Tweets for specific topics in large volume, then Tweepy Twitter stream is your answer.

The below code is very basic and has not been refactored to handle large volumes, for me the code ran into consuming 2GB of RAM but you can be better of using some data structure like queues and multi-threading.